{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>优化师都在这里了!国内最大的广告投放行业社群等你加入!</td>\n",
       "      <td>ideasem艾奇在线(www.27sem.com)是国内专业的SEM与信息流广告从业者学习...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1581422560</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-02-11 12:02:40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>【推荐】广告优化师找创意\\文案\\素材\\落地页的强大工具,轻松助力效果提升!</td>\n",
       "      <td>课程学习 | 人才孵化 | 求职招聘 | 资源对接找优质渠道加微信:Aiqijun20作为广...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1559650172</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-06-04 12:09:32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>那些月薪20000+的信息流广告优化师,是怎样优化账户的?</td>\n",
       "      <td>而负责投放信息流广告的优化师就是那个“抓牌”的人,于是很多优化师拿到账户的第一时间就是找出素...</td>\n",
       "      <td>SEM思维</td>\n",
       "      <td>1564484421</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-07-30 11:00:21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>字节海外平台——TikTok广告优化师入门指南</td>\n",
       "      <td>单价偏高,待广告表现稳定后,可进行程序化创意9. 投放详情中语言选择要符合投放国家/地区语言...</td>\n",
       "      <td>陶一乐</td>\n",
       "      <td>1586266896</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-04-07 13:41:36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>清单:优秀的信息流广告优化师,必备2大技能!</td>\n",
       "      <td>竞价分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...</td>\n",
       "      <td>搜通互联网广告优惠平台</td>\n",
       "      <td>1536574012</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-09-10 10:06:52</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>海外广告优化师招聘第二十期</td>\n",
       "      <td>海外广告优化师招聘第二十期2020.5.12往期回顾:海外广告优化师招聘第一期海外广告优化师...</td>\n",
       "      <td>全球UA黑客群</td>\n",
       "      <td>1589256820</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-05-12 04:13:40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>短视频广告优化还能这样玩?果然是高级优化师,甘拜下风~</td>\n",
       "      <td>但根据不完全统计,我国现有约20万广告优化师,却支撑着短视频营销市场超3000亿的流水.愈发...</td>\n",
       "      <td>DOMOB</td>\n",
       "      <td>1574679618</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-11-25 11:00:18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>我体验了一把海外广告优化师</td>\n",
       "      <td>开设海外广告投放优化师岗位的公司基本上只有两种:一种是甲方,包括游戏发行方,产品运营方等,希...</td>\n",
       "      <td>俗人奇</td>\n",
       "      <td>1559147683</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-05-29 16:34:43</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>期待值Max!中国第一场专属移动广告优化师的大会要来了!</td>\n",
       "      <td>都是『移动广告优化师』运用自身智慧+创意的精妙呈现,都是技术+经验的双重结合.毫无疑问,营销...</td>\n",
       "      <td>Morketing</td>\n",
       "      <td>1536928175</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-09-14 12:29:35</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>海外广告优化师招聘第二十一期</td>\n",
       "      <td>海外广告优化师招聘第二十一期2020.5.29往期回顾:海外广告优化师招聘第一期海外广告优化...</td>\n",
       "      <td>全球UA黑客群</td>\n",
       "      <td>1590746446</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-05-29 10:00:46</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                      标题  \\\n",
       "0            优化师都在这里了!国内最大的广告投放行业社群等你加入!   \n",
       "1  【推荐】广告优化师找创意\\文案\\素材\\落地页的强大工具,轻松助力效果提升!   \n",
       "2          那些月薪20000+的信息流广告优化师,是怎样优化账户的?   \n",
       "3                字节海外平台——TikTok广告优化师入门指南   \n",
       "4                 清单:优秀的信息流广告优化师,必备2大技能!   \n",
       "5                          海外广告优化师招聘第二十期   \n",
       "6            短视频广告优化还能这样玩?果然是高级优化师,甘拜下风~   \n",
       "7                          我体验了一把海外广告优化师   \n",
       "8           期待值Max!中国第一场专属移动广告优化师的大会要来了!   \n",
       "9                         海外广告优化师招聘第二十一期   \n",
       "\n",
       "                                                  摘要       source          时间  \\\n",
       "0  ideasem艾奇在线(www.27sem.com)是国内专业的SEM与信息流广告从业者学习...        艾奇SEM  1581422560   \n",
       "1  课程学习 | 人才孵化 | 求职招聘 | 资源对接找优质渠道加微信:Aiqijun20作为广...        艾奇SEM  1559650172   \n",
       "2  而负责投放信息流广告的优化师就是那个“抓牌”的人,于是很多优化师拿到账户的第一时间就是找出素...        SEM思维  1564484421   \n",
       "3  单价偏高,待广告表现稳定后,可进行程序化创意9. 投放详情中语言选择要符合投放国家/地区语言...          陶一乐  1586266896   \n",
       "4  竞价分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...  搜通互联网广告优惠平台  1536574012   \n",
       "5  海外广告优化师招聘第二十期2020.5.12往期回顾:海外广告优化师招聘第一期海外广告优化师...      全球UA黑客群  1589256820   \n",
       "6  但根据不完全统计,我国现有约20万广告优化师,却支撑着短视频营销市场超3000亿的流水.愈发...        DOMOB  1574679618   \n",
       "7  开设海外广告投放优化师岗位的公司基本上只有两种:一种是甲方,包括游戏发行方,产品运营方等,希...          俗人奇  1559147683   \n",
       "8  都是『移动广告优化师』运用自身智慧+创意的精妙呈现,都是技术+经验的双重结合.毫无疑问,营销...    Morketing  1536928175   \n",
       "9  海外广告优化师招聘第二十一期2020.5.29往期回顾:海外广告优化师招聘第一期海外广告优化...      全球UA黑客群  1590746446   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-02-11 12:02:40  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-06-04 12:09:32  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-07-30 11:00:21  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-04-07 13:41:36  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-09-10 10:06:52  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-05-12 04:13:40  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-11-25 11:00:18  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-05-29 16:34:43  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-09-14 12:29:35  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-05-29 10:00:46  "
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# query 为关键字选取 以运营为例\n",
    "\n",
    "import pandas as pd\n",
    "from requests_html import HTMLSession\n",
    "from pandas.api.types import is_numeric_dtype\n",
    "\n",
    "url = \"https://weixin.sogou.com/weixin\"\n",
    "session = HTMLSession()\n",
    "payload = {\n",
    "    \"query\":\"广告优化师\",\n",
    "    \"type\":\"2\", # 2 文章、1 公众号\n",
    "    \"page\":10  \n",
    "}\n",
    "\n",
    "r = session.get( url, params = payload, )\n",
    "\n",
    "\n",
    "主要元素 =  r.html.xpath( '//ul[@class=\"news-list\"]/li')\n",
    "\n",
    "dict_xpaths = {\n",
    "    'text':{\n",
    "        'source':'//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/text()',\n",
    "        '时间':'//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/@t',       \n",
    "    },\n",
    "    'text_content':{\n",
    "        '标题':'//div[contains(@class,\"txt-box\")]/h3/a',\n",
    "        '摘要':'//div[contains(@class,\"txt-box\")]/p'\n",
    "    },\n",
    "    'href':{\n",
    "        \"公众号链接\":'//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/@href',\n",
    "        \"文章链接\":'//div[contains(@class,\"txt-box\")]/h3/a/@href',\n",
    "    }\n",
    "}\n",
    "\n",
    "\n",
    "def get_e_text_content(_xpath_):\n",
    "    # 高级列表推导\n",
    "    暂存结果 = [e.xpath(_xpath_)[0].lxml.text_content() for e in 主要元素]\n",
    "\n",
    "    return(暂存结果)\n",
    "\n",
    "def get_e_text(_xpath_):\n",
    "    暂存结果 = [\"\".join([x.strip() if type(x) is str else x.text.strip() for x in e.xpath(_xpath_)]) for e in 主要元素]\n",
    "    return(暂存结果)\n",
    "\n",
    "def get_e_href(_xpath_):\n",
    "    # 高级列表推导\n",
    "    暂存结果 = [\"https://weixin.sogou.com\"+item for e in 主要元素 for item in e.xpath(_xpath_)]\n",
    "    return(暂存结果)\n",
    "\n",
    "数据字典 = dict()\n",
    "# content\n",
    "数据字典 = {k:get_e_text_content(v) for k,v in dict_xpaths['text_content'].items()}\n",
    "# text\n",
    "数据字典.update({k:get_e_text(v) for k,v in dict_xpaths['text'].items()})\n",
    "# href\n",
    "数据字典.update({k:get_e_href(v) for k,v in dict_xpaths['href'].items()})\n",
    "\n",
    "数据 = pd.DataFrame(数据字典)\n",
    "\n",
    "数据 = 数据.assign(\n",
    "    格式化时间 = lambda x: pd.to_datetime(x[\"时间\"], unit='s').dt.strftime('%Y-%m-%d %H:%M:%S')\n",
    ")\n",
    "数据\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open (\"weixin_market.html\", encoding = \"utf8\", mode = \"w\") as fp:\n",
    "    fp.write(r.html.html)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['艾奇SEM',\n",
       " '艾奇SEM',\n",
       " 'SEM思维',\n",
       " '陶一乐',\n",
       " '搜通互联网广告优惠平台',\n",
       " '全球UA黑客群',\n",
       " 'DOMOB',\n",
       " '俗人奇',\n",
       " 'Morketing',\n",
       " '全球UA黑客群']"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 来源的xpath解析结果\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/text()')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['都在这里了!国内最大的',\n",
       " '投放行业社群等你加入!',\n",
       " '【推荐】',\n",
       " '找创意\\\\文案\\\\素材\\\\落地页的强大工具,轻松助力效果提升!',\n",
       " '那些月薪20000+的信息流',\n",
       " ',是怎样优化账户的?',\n",
       " '字节海外平台——TikTok',\n",
       " '入门指南',\n",
       " '清单:优秀的信息流',\n",
       " ',必备2大技能!',\n",
       " '海外',\n",
       " '招聘第二十期',\n",
       " '短视频',\n",
       " '还能这样玩?果然是高级',\n",
       " ',甘拜下风~',\n",
       " '我体验了一把海外',\n",
       " '期待值Max!中国第一场专属移动',\n",
       " '的大会要来了!',\n",
       " '海外',\n",
       " '招聘第二十一期']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 标题？1、em text()? + a/text()?\n",
    "# 某一条<li>信息,再进行上一步 if else\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a/text()')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'优化师都在这里了!国内最大的广告投放行业社群等你加入!'"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a')[0].lxml.text_content()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'ideasem艾奇在线(www.27sem.com)是国内专业的SEM与信息流广告从业者学习交流平台,汇聚全网20万互联网广告优化师.同时...'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/p')[0].lxml.text_content()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['https://weixin.sogou.com/weixin',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHjDFR9Vrx6YIpXLsjBR-PeZ5H4gqzlbxy2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHjDFR9Vrx6YIpXLsjBR-PeZ5H4gqzlbxy2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzGruKyIDAHLeUm0ALQShFonqKHrIHD3FzIVQgdg9HnRdBQUJB8kHKNrRrfLf5bVteqHatMnSNyNaXM0FYBADaJFFJJudr8NAVzvW0MunXi0rI8sFPDTMYQW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzijNfm82NdcUXCB3TPA2aqi_vge88nnMn8KyhCGNJXMvxCEw9jPi3cEeUQKbFVs6z-7L5b9mDEGPwBjBmmb8rlxEz2nCGHdKldBLdxdQH4ozCCwocYx3hV2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzbM3JtbQQ_42u1SCtmnzFUz74fp0su6OHLXk1Ok0L3P24gVZf-VcZ7-DrL0gVFV-I4VQHLjq1onZQ8aSLXUKIB-tTMuXWmhKXuM5mSxMa5mJKAMDikLmGS24OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOi5Hsjr0kcR3aDteXdAF8pWX7Be7zeGpTWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzPhT6xqRluKvbUYLr2S4CuUaA4xZPUCTTEVWbCgc2rjbeVBBhsdtLnI_4jDD8d8pleKrsqeNM9zr6nnSOfU8uCAacU8-6dhBayCMbmq93sNm_3JWyTpXZkm4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdz3EUYFoUsu75zFZ-pKDPN0868iFFgLmMIqSKQAL_hvWZKPjUL7kCGCZNU_KdFTAhq2Q2VtrIkqeDje4Yf7wxPne2s_n55-QxxnFmCDTAm-VA0VxsB8Gf8lW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdz0sQu6H0Gcczg7h1tbyqeroYILDM8tyb3f0DbjO5aWPsJGKTmEQiHc6gpKHPr7uY0NU6SGW2_pC9Pm52pDTFyKDO3spsIrwwhwH0RpMVWBXPcfFj9LQw3waUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOi5Hsjr0kcR3aDteXdAF8pWX7Be7zeGpTWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC']"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 公众号链接\n",
    "['https://weixin.sogou.com/weixin']+ r.html.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/@href')\n",
    "\n",
    "# TypeError:can only concatenate str (not \"list\") to str http链接不使用[]会报错 列表连接 (operand +) 报错 解决办法突然看到有[]链接，https://blog.csdn.net/TianJiaMei/article/details/67639563 就给http加上了[]就好了"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyHVoF6MLKUC3YDFrGV-a0I3veHbQd5xv4i8eSsK7EjbatIPdV5dN2YlOdjid8uoxGpOsCvJRSd8tPAZZGF_P6-9qIOS9AitG-ulwL1y3zDkVeFny4-1m_zWfxjh3za6jWA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyBeu2qClycHLkeKomBFA-HZGThokETbnhju9geefhtqDknFxosWFL5gV5eHirLVwH_urlrclyMBzfg4JprcS3hYj_Anggdx1rhIQVgDOvtLynO5gb3XXH-3m0CtGSSkZQQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9Uq_gPTKKTvVRdCvbevodvsvAKzTZ2Yiol6ywTZItqkxViiCVmbjUn5BKkWkxNCrnRG-1ed_XidRV5Sw254MyfZBmYe-cNtt1KukbX8ZLXB0R5WhGw6NtJbQqbkrHSm7qGqCYUmk8-lw-hjgyz_EXvaD2exEtc_YsWJbuHW7We3ZCy6umSSPEsg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd96v4ub2UhmIodIogmVJMPyND5oppFDiYwG5taYxRQ8EcPEIE2B2eYmveUK4UdhdHi6gd4rzPq54aK8PAnSGBX6ugQ3-SKptsOFP02N59FCGgK4c-cIHK5HFj-XnDXohNweRY35YRwgHjl6YpQt6dAV1TPNDrlxm3JKfj91XJlmxCTJmCU1UgHwQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9fGeb5Ygmk0owawV0FIGsGWc-WK0UDdvzfzGG8vKyfUtv4DMjPMPaSM0tDr20F4uwCOA_VAsILaiAEa3ZyjC7GUeMe4G1CUMJV1IQIic77KGMEtrbTkopCjZAbu_Fud-d0KwaeDi9pwB8t-be6QCJU3lgG8BuVB2rjnlvYExq9ZoSYTqT4eyLmA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9vigK6712g1Z651LWPGkY-SUceLvZAgOkQwgSiRGAYp6scSmZ17bBYow1ccR7zFWhBBomqmc4OX5VGb7GtYB4PYH4-Ieoo0pTX2W1oG4i_8MzIAdjqBTtse5ZjdPVYGotkg7BBG57VTSnNicUJ8BzheRu_o72lo8OnG71vszBA5hj32-j2KiwUw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9-nRvBwhpPoZ--ZZz2UoAU7ISCquP9IFt2Aab83eD9NX2IUDcXliPs8x2B-nUyV7Dz_pZFFF_tfDx-qlKIrmSwBCczKuS0F2jPbvUADaqRF3qOZtak47z3_iAFRhEXqgGbbaTxl-bhOzf63pgfSKsrolTEzarUcyVRc8Yyin0FrRQ_LeJW-Rhtg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9XvYH7ycmEIZtXDBPWZSQkmhd-tjbvCNy9LP4Lglm_TvqbS8ExeqpklTKL6BmrqCcSDd2zbATfWj8IG39wBy5fxak9sF52QitxkeX1jubBqkT-cpcRXsqkAq7yY39TegeJZQPpC7Pvc-p9j-KdBzuz7HIVjhy6bQ1QN5-cjbA-upj32-j2KiwUw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9OntbHBbLZcHqpsw3MGteZIZNp7Q8CBBu3NL_Wq3sCi6aHgmTInDUSwFcBElwrKo8Nbo9h_C5cDAMjIor2JOhTlb5OwXNL49aPt732JqdIQgFXDn4MWNf-N44yRvbC3HPf1Sjy2L1eAwa6Z_W54hjqEsUOdLR4rkfXQ0gzdiRcvXYl_Q5RRZQjg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9vigK6712g1Z651LWPGkY-SUceLvZAgOkQwgSiRGAYp6scSmZ17bBYt0tnyltyOE2gNJs_UN7aB_IXJpjqysiQCWiVAwQbWK4kb1XtUPAr69NO3nwlpDMi04up3umjsQ2Wq2K3uLQbfW1eRXzDu3fBo4EudT8g7sFbumpuMNaGvvYl_Q5RRZQjg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC']"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 公众号文章链接\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a/@href')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 时间\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/span/text()')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/fbac17wmeIE3Je4d2tibPzXfiaiaMibPyEe9bHlKHuJBV3tl7McpoTRICwS2D1gibSKq5bHs7jPtMovkvH4FibrhPic7g/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/fbac17wmeIElfC77mKgz0diaicnbW0W5gJr17A527Hr3rOFlVBcyurS0u7dj0aXzADnrttgH4YMz32rmF2thFPeQ/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/l42Odu7wyAhNgzDxP1ynA2eBib8ibd1icXdYHN9bKvLWDg3hJjkRl5mA3Gqd82wIcJhIjsqCoaYJxPZ18nZVOQ7hg/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/L6hHIcZvecm17fPDTwqZbdQG8rQSoVx6SjjPz6Uib8bbFlqZnHBwObibvicss6ShnibExa7D4488o4xcIOMBAsbO6w/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/SCicYhiaiaK6NXloibZR8L9wM2WnlAtPTh9KbTxQGvB2Q6qp1KbiaP5BDBkwQEk6Wq4cqmtNDdkXib2npeJXfB4oj8lQ/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/8WH7Ee8ef1AMBDetUcxKZbkfTtoiavorhhOiaaZG1kknqaXId61wYMyXuVxoHeDWw4u7Zoe226jghtwrJk9dxQ9A/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/hy3U221KvdDcHnhN7roFyia9fZku9eibficGb58akibeCZSJMBJs4ZAUmELDFYJmXPMd8wN9AicaXOgOkGib1Mw35jMA/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/RxGMZOuZjJphPG8UNGxS3zbhQAsFtD13eU0Tico0e9etqJzH00wA6grkibCscOpdasKkaXia2RiacQPyic1iawaJicN3w/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/SjJg8IWpbApQwD7sWSiamg9fMCMFUib6tglWyw8NTyQOMnhCMwiaLcxoyqhRuFWEJlodVdzOQfaeibr292AE2DbaNg/0?wx_fmt=jpeg',\n",
       " '//img01.sogoucdn.com/net/a/04/link?appid=100520033&url=http://mmbiz.qpic.cn/mmbiz_jpg/8WH7Ee8ef1D7kyTVnIuJO3ibSGepAq4QKzEZXypCaHPgLqWYUiawFY23yibVTm90pOfibSJ315mcqtx3PfcPRibic0eA/0?wx_fmt=jpeg']"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 图片\n",
    "r.html.xpath('//div[contains(@class,\"img-box\")]/a/img/@src') "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.request.headers"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open (\"weixin_广告优化师.html\", encoding = \"utf8\", mode = \"w\") as fp:\n",
    "    fp.write(r.html.html)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'ideasem艾奇在线(www.27sem.com)是国内专业的SEM与信息流广告从业者学习交流平台,汇聚全网20万互联网广告优化师.同时...'"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# lxml.text_content()\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a/em/text()')\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a/text()')\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/p')[0].lxml.text_content()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHjDFR9Vrx6YIpXLsjBR-PeZ5H4gqzlbxy2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHjDFR9Vrx6YIpXLsjBR-PeZ5H4gqzlbxy2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzGruKyIDAHLeUm0ALQShFonqKHrIHD3FzIVQgdg9HnRdBQUJB8kHKNrRrfLf5bVteqHatMnSNyNaXM0FYBADaJFFJJudr8NAVzvW0MunXi0rI8sFPDTMYQW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzijNfm82NdcUXCB3TPA2aqi_vge88nnMn8KyhCGNJXMvxCEw9jPi3cEeUQKbFVs6z-7L5b9mDEGPwBjBmmb8rlxEz2nCGHdKldBLdxdQH4ozCCwocYx3hV2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzbM3JtbQQ_42u1SCtmnzFUz74fp0su6OHLXk1Ok0L3P24gVZf-VcZ7-DrL0gVFV-I4VQHLjq1onZQ8aSLXUKIB-tTMuXWmhKXuM5mSxMa5mJKAMDikLmGS24OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOi5Hsjr0kcR3aDteXdAF8pWX7Be7zeGpTWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzPhT6xqRluKvbUYLr2S4CuUaA4xZPUCTTEVWbCgc2rjbeVBBhsdtLnI_4jDD8d8pleKrsqeNM9zr6nnSOfU8uCAacU8-6dhBayCMbmq93sNm_3JWyTpXZkm4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdz3EUYFoUsu75zFZ-pKDPN0868iFFgLmMIqSKQAL_hvWZKPjUL7kCGCZNU_KdFTAhq2Q2VtrIkqeDje4Yf7wxPne2s_n55-QxxnFmCDTAm-VA0VxsB8Gf8lW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdz0sQu6H0Gcczg7h1tbyqeroYILDM8tyb3f0DbjO5aWPsJGKTmEQiHc6gpKHPr7uY0NU6SGW2_pC9Pm52pDTFyKDO3spsIrwwhwH0RpMVWBXPcfFj9LQw3waUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " '/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOi5Hsjr0kcR3aDteXdAF8pWX7Be7zeGpTWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC']"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a/@href')\n",
    "r.html.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/@href')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.request.headers"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 下载页面\n",
    "with open (\"weixin_sougoutech.html\", encoding = \"utf8\", mode = \"w\") as fp:\n",
    "    fp.write(r.html.html)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 输出excel档\n",
    "数据.to_excel(\"广告优化师_sougou_weixin.xlsx\", sheet_name=\"搜查结果\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyHVoF6MLKUC3YDFrGV-a0I3veHbQd5xv4i8eSsK7EjbatIPdV5dN2YlOdjid8uoxGpOsCvJRSd8tPAZZGF_P6-9qIOS9AitG-ulwL1y3zDkVeFny4-1m_zWfxjh3za6jWA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyBeu2qClycHLkeKomBFA-HZGThokETbnhju9geefhtqDknFxosWFL5gV5eHirLVwH_urlrclyMBzfg4JprcS3hYj_Anggdx1rhIQVgDOvtLynO5gb3XXH-3m0CtGSSkZQQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9Uq_gPTKKTvVRdCvbevodvsvAKzTZ2Yiol6ywTZItqkxViiCVmbjUn5BKkWkxNCrnRG-1ed_XidRV5Sw254MyfZBmYe-cNtt1KukbX8ZLXB0R5WhGw6NtJbQqbkrHSm7qGqCYUmk8-lw-hjgyz_EXvaD2exEtc_YsWJbuHW7We3ZCy6umSSPEsg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd96v4ub2UhmIodIogmVJMPyND5oppFDiYwG5taYxRQ8EcPEIE2B2eYmveUK4UdhdHi6gd4rzPq54aK8PAnSGBX6ugQ3-SKptsOFP02N59FCGgK4c-cIHK5HFj-XnDXohNweRY35YRwgHjl6YpQt6dAV1TPNDrlxm3JKfj91XJlmxCTJmCU1UgHwQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9fGeb5Ygmk0owawV0FIGsGWc-WK0UDdvzfzGG8vKyfUtv4DMjPMPaSM0tDr20F4uwCOA_VAsILaiAEa3ZyjC7GUeMe4G1CUMJV1IQIic77KGMEtrbTkopCjZAbu_Fud-d0KwaeDi9pwB8t-be6QCJU3lgG8BuVB2rjnlvYExq9ZoSYTqT4eyLmA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9vigK6712g1Z651LWPGkY-SUceLvZAgOkQwgSiRGAYp6scSmZ17bBYow1ccR7zFWhBBomqmc4OX5VGb7GtYB4PYH4-Ieoo0pTX2W1oG4i_8MzIAdjqBTtse5ZjdPVYGotkg7BBG57VTSnNicUJ8BzheRu_o72lo8OnG71vszBA5hj32-j2KiwUw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9-nRvBwhpPoZ--ZZz2UoAU7ISCquP9IFt2Aab83eD9NX2IUDcXliPs8x2B-nUyV7Dz_pZFFF_tfDx-qlKIrmSwBCczKuS0F2jPbvUADaqRF3qOZtak47z3_iAFRhEXqgGbbaTxl-bhOzf63pgfSKsrolTEzarUcyVRc8Yyin0FrRQ_LeJW-Rhtg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9XvYH7ycmEIZtXDBPWZSQkmhd-tjbvCNy9LP4Lglm_TvqbS8ExeqpklTKL6BmrqCcSDd2zbATfWj8IG39wBy5fxak9sF52QitxkeX1jubBqkT-cpcRXsqkAq7yY39TegeJZQPpC7Pvc-p9j-KdBzuz7HIVjhy6bQ1QN5-cjbA-upj32-j2KiwUw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9OntbHBbLZcHqpsw3MGteZIZNp7Q8CBBu3NL_Wq3sCi6aHgmTInDUSwFcBElwrKo8Nbo9h_C5cDAMjIor2JOhTlb5OwXNL49aPt732JqdIQgFXDn4MWNf-N44yRvbC3HPf1Sjy2L1eAwa6Z_W54hjqEsUOdLR4rkfXQ0gzdiRcvXYl_Q5RRZQjg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFZpjiBaUJV4IOh35OSgIxs1qXa8Fplpd9vigK6712g1Z651LWPGkY-SUceLvZAgOkQwgSiRGAYp6scSmZ17bBYt0tnyltyOE2gNJs_UN7aB_IXJpjqysiQCWiVAwQbWK4kb1XtUPAr69NO3nwlpDMi04up3umjsQ2Wq2K3uLQbfW1eRXzDu3fBo4EudT8g7sFbumpuMNaGvvYl_Q5RRZQjg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC']"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 文章链接 细化\n",
    "# href_list 文章链接\n",
    "article_href_list = []\n",
    "for item in r.html.xpath('//div[contains(@class,\"txt-box\")]/h3/a/@href'):\n",
    "#     print(item)\n",
    "    article_href_list.append(\"https://weixin.sogou.com\"+item)\n",
    "article_href_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHjDFR9Vrx6YIpXLsjBR-PeZ5H4gqzlbxy2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHjDFR9Vrx6YIpXLsjBR-PeZ5H4gqzlbxy2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzGruKyIDAHLeUm0ALQShFonqKHrIHD3FzIVQgdg9HnRdBQUJB8kHKNrRrfLf5bVteqHatMnSNyNaXM0FYBADaJFFJJudr8NAVzvW0MunXi0rI8sFPDTMYQW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzijNfm82NdcUXCB3TPA2aqi_vge88nnMn8KyhCGNJXMvxCEw9jPi3cEeUQKbFVs6z-7L5b9mDEGPwBjBmmb8rlxEz2nCGHdKldBLdxdQH4ozCCwocYx3hV2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzbM3JtbQQ_42u1SCtmnzFUz74fp0su6OHLXk1Ok0L3P24gVZf-VcZ7-DrL0gVFV-I4VQHLjq1onZQ8aSLXUKIB-tTMuXWmhKXuM5mSxMa5mJKAMDikLmGS24OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOi5Hsjr0kcR3aDteXdAF8pWX7Be7zeGpTWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzPhT6xqRluKvbUYLr2S4CuUaA4xZPUCTTEVWbCgc2rjbeVBBhsdtLnI_4jDD8d8pleKrsqeNM9zr6nnSOfU8uCAacU8-6dhBayCMbmq93sNm_3JWyTpXZkm4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdz3EUYFoUsu75zFZ-pKDPN0868iFFgLmMIqSKQAL_hvWZKPjUL7kCGCZNU_KdFTAhq2Q2VtrIkqeDje4Yf7wxPne2s_n55-QxxnFmCDTAm-VA0VxsB8Gf8lW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdz0sQu6H0Gcczg7h1tbyqeroYILDM8tyb3f0DbjO5aWPsJGKTmEQiHc6gpKHPr7uY0NU6SGW2_pC9Pm52pDTFyKDO3spsIrwwhwH0RpMVWBXPcfFj9LQw3waUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC',\n",
       " 'http://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPqE9lYr7SuGZNPm6d1a3lJPAwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOi5Hsjr0kcR3aDteXdAF8pWX7Be7zeGpTWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09D7B4199137BDAE94913E52E7DCC93495C351AB5F1408BC']"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 公众号链接 细化\n",
    "[\"http://weixin.sogou.com\"+item\\\n",
    " for e in 主要元素 # 原来代码是在下面语句后面也就是最后一行是错误的，必须是在前面把顺序调换了一下就是可以了\n",
    " for item in e.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/@href') ]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 来源和发表时间 细化\n",
    "source = r.html.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/text()')\n",
    "time =  r.html.xpath('//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/@t')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 单一页面\n",
    "url = \"https://weixin.sogou.com/weixin\"\n",
    "session = HTMLSession()\n",
    "payload = {\n",
    "    \"query\":\"广告优化师\",\n",
    "    \"type\":\"2\"\n",
    "}\n",
    "\n",
    "r = session.get( url, params = payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[<Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8' id='sogou_page_2' uigs='page_2'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=3&ie=utf8' id='sogou_page_3' uigs='page_3'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=4&ie=utf8' id='sogou_page_4' uigs='page_4'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=5&ie=utf8' id='sogou_page_5' uigs='page_5'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=6&ie=utf8' id='sogou_page_6' uigs='page_6'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=7&ie=utf8' id='sogou_page_7' uigs='page_7'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=8&ie=utf8' id='sogou_page_8' uigs='page_8'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=9&ie=utf8' id='sogou_page_9' uigs='page_9'>, <Element 'a' href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=10&ie=utf8' id='sogou_page_10' uigs='page_10'>, <Element 'a' class=('np',) href='?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8' id='sogou_next' uigs='page_next'>]\n",
      "['?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=3&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=4&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=5&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=6&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=7&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=8&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=9&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=10&ie=utf8', '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8']\n",
      "{'2': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8', '3': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=3&ie=utf8', '4': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=4&ie=utf8', '5': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=5&ie=utf8', '6': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=6&ie=utf8', '7': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=7&ie=utf8', '8': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=8&ie=utf8', '9': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=9&ie=utf8', '10': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=10&ie=utf8', '下一页': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8'}\n"
     ]
    }
   ],
   "source": [
    "# xpath 解析翻页a/@href\n",
    "xpath_翻页a = '//div[@class=\"p-fy\"]/a'\n",
    "xpath_翻页a = '//div[@class=\"p-fy\"]/a'\n",
    "print (r.html.xpath(xpath_翻页a))\n",
    "\n",
    "href_列表 = [x.xpath('//@href')[0] for x in r.html.xpath(xpath_翻页a)]\n",
    "print (href_列表)\n",
    "\n",
    "href_字典 = {x.text:x.xpath('//@href')[0]  for x in r.html.xpath(xpath_翻页a)}\n",
    "print (href_字典)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'parse_qs' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-25-3140a6cc88ee>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mparse_qs\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"query=python&type=2&page=2&ie=utf8\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name 'parse_qs' is not defined"
     ]
    }
   ],
   "source": [
    "parse_qs(\"query=python&type=2&page=2&ie=utf8\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>scheme</th>\n",
       "      <th>netloc</th>\n",
       "      <th>path</th>\n",
       "      <th>params</th>\n",
       "      <th>query</th>\n",
       "      <th>fragment</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  scheme netloc path params  \\\n",
       "0                             \n",
       "1                             \n",
       "2                             \n",
       "3                             \n",
       "4                             \n",
       "5                             \n",
       "6                             \n",
       "7                             \n",
       "8                             \n",
       "9                             \n",
       "\n",
       "                                               query fragment  \n",
       "0  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "1  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "2  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "3  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "4  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "5  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "6  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "7  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "8  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
       "9  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "scheme      1\n",
      "netloc      1\n",
      "path        1\n",
      "params      1\n",
      "query       9\n",
      "fragment    1\n",
      "dtype: int64\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ie</th>\n",
       "      <th>page</th>\n",
       "      <th>query</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>utf8</td>\n",
       "      <td>2</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>utf8</td>\n",
       "      <td>3</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>utf8</td>\n",
       "      <td>4</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>utf8</td>\n",
       "      <td>5</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>utf8</td>\n",
       "      <td>6</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>utf8</td>\n",
       "      <td>7</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>utf8</td>\n",
       "      <td>8</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>utf8</td>\n",
       "      <td>9</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>utf8</td>\n",
       "      <td>10</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>utf8</td>\n",
       "      <td>2</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     ie page  query type\n",
       "0  utf8    2  广告优化师    2\n",
       "1  utf8    3  广告优化师    2\n",
       "2  utf8    4  广告优化师    2\n",
       "3  utf8    5  广告优化师    2\n",
       "4  utf8    6  广告优化师    2\n",
       "5  utf8    7  广告优化师    2\n",
       "6  utf8    8  广告优化师    2\n",
       "7  utf8    9  广告优化师    2\n",
       "8  utf8   10  广告优化师    2\n",
       "9  utf8    2  广告优化师    2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "ie       1\n",
      "page     9\n",
      "query    1\n",
      "type     1\n",
      "dtype: int64\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ie</th>\n",
       "      <th>page</th>\n",
       "      <th>query</th>\n",
       "      <th>type</th>\n",
       "      <th>page_int</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>utf8</td>\n",
       "      <td>2</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>utf8</td>\n",
       "      <td>3</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>utf8</td>\n",
       "      <td>4</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>utf8</td>\n",
       "      <td>5</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>utf8</td>\n",
       "      <td>6</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>utf8</td>\n",
       "      <td>7</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>utf8</td>\n",
       "      <td>8</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>utf8</td>\n",
       "      <td>9</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>utf8</td>\n",
       "      <td>10</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>utf8</td>\n",
       "      <td>2</td>\n",
       "      <td>广告优化师</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     ie page  query type  page_int\n",
       "0  utf8    2  广告优化师    2         2\n",
       "1  utf8    3  广告优化师    2         3\n",
       "2  utf8    4  广告优化师    2         4\n",
       "3  utf8    5  广告优化师    2         5\n",
       "4  utf8    6  广告优化师    2         6\n",
       "5  utf8    7  广告优化师    2         7\n",
       "6  utf8    8  广告优化师    2         8\n",
       "7  utf8    9  广告优化师    2         9\n",
       "8  utf8   10  广告优化师    2        10\n",
       "9  utf8    2  广告优化师    2         2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 建构参数模板：找到关键参数及参数结构\n",
    "\n",
    "# 需要模组库\n",
    "from urllib.parse import urlparse, parse_qs\n",
    "import pandas as pd\n",
    "from IPython.display import display, HTML\n",
    "\n",
    "\n",
    "\n",
    "df = pd.DataFrame([ urlparse(x) for x in href_列表])\n",
    "\n",
    "df_qs = pd.DataFrame([{k:v[0] for k,v in parse_qs(x).items()} for x in df['query'] ])\n",
    "\n",
    "display(df)\n",
    "\n",
    "\n",
    "\n",
    "print(df.nunique())\n",
    "display(df_qs)\n",
    "print(df_qs.nunique())\n",
    "\n",
    "df_qs.page\n",
    "df_qs = df_qs.assign (page_int=df_qs.page.astype(int)) # 变成整数(数值)\n",
    "display(df_qs)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'query': ['广告优化师'], 'type': ['2'], 'page': ['4'], 'ie': ['utf8']}\n",
      "{'2': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8', '3': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=3&ie=utf8', '4': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=4&ie=utf8', '5': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=5&ie=utf8', '6': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=6&ie=utf8', '7': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=7&ie=utf8', '8': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=8&ie=utf8', '9': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=9&ie=utf8', '10': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=10&ie=utf8', '下一页': '?query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&type=2&page=2&ie=utf8'}\n"
     ]
    }
   ],
   "source": [
    "# 建构参数模板：找到关键参数及参数结构\n",
    "\n",
    "def parse_url_qs_for_page (url):\n",
    "    six_parts = urlparse(url) \n",
    "    out = parse_qs(six_parts.query)\n",
    "    return (out)\n",
    "\n",
    "# 取一例做模板\n",
    "参数模板 = parse_url_qs_for_page(href_列表[2])\n",
    "print (参数模板)\n",
    "\n",
    "# 重新审视：href_字典\n",
    "print (href_字典)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2\n",
      "10\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{1: {'query': ['广告优化师'], 'type': ['2'], 'page': [1], 'ie': ['utf8']},\n",
       " 2: {'query': ['广告优化师'], 'type': ['2'], 'page': [2], 'ie': ['utf8']},\n",
       " 3: {'query': ['广告优化师'], 'type': ['2'], 'page': [3], 'ie': ['utf8']},\n",
       " 4: {'query': ['广告优化师'], 'type': ['2'], 'page': [4], 'ie': ['utf8']},\n",
       " 5: {'query': ['广告优化师'], 'type': ['2'], 'page': [5], 'ie': ['utf8']},\n",
       " 6: {'query': ['广告优化师'], 'type': ['2'], 'page': [6], 'ie': ['utf8']},\n",
       " 7: {'query': ['广告优化师'], 'type': ['2'], 'page': [7], 'ie': ['utf8']},\n",
       " 8: {'query': ['广告优化师'], 'type': ['2'], 'page': [8], 'ie': ['utf8']},\n",
       " 9: {'query': ['广告优化师'], 'type': ['2'], 'page': [9], 'ie': ['utf8']},\n",
       " 10: {'query': ['广告优化师'], 'type': ['2'], 'page': [10], 'ie': ['utf8']}}"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 建构参数模板生成器：query（搜索关键字）page\n",
    "def 参数模板生成(query, page):\n",
    "    参数 = 参数模板.copy()\n",
    "    参数['page'] = page\n",
    "    参数['query'] = query\n",
    "    return (参数)\n",
    "\n",
    "# -----------    参数模版生成器 目的 构建payload\n",
    "# payload={\n",
    "    \n",
    "# }\n",
    "参数_query_广告优化师_page = { \n",
    "    i:参数模板生成(page = [i], \\\n",
    "                  query = ['广告优化师']) \\\n",
    "    for i,v in href_字典.items()\\\n",
    "    }\n",
    "\n",
    "print (df_qs.page_int.min()) # 最小值只有2 1的时候没有链接？\n",
    "print (df_qs.page_int.max()) # 最大值只有9\n",
    "\n",
    "参数_query_广告优化师_page = { \n",
    "    i:参数模板生成(page = [i], \\\n",
    "                  query = ['广告优化师']) \\\n",
    "    for i in range(df_qs.page_int.min()-1,df_qs.page_int.max()+1)\\\n",
    "    }\n",
    "参数_query_广告优化师_page"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "第 1 页\n",
      "payload: {'query': '广告优化师', 'type': '2', 'page': 1}\n",
      "url: https://weixin.sogou.com/weixin\n",
      "第 1 页 的Dataframe\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>一个广告优化师的自白</td>\n",
       "      <td>“广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...</td>\n",
       "      <td>鸟哥笔记</td>\n",
       "      <td>1557446890</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-05-10 00:08:10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>优化师绝对不能错过——《2019移动广告优化师发展报告》完整发布!</td>\n",
       "      <td>课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun10来源:有...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1564661286</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-08-01 12:08:06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>一个广告优化师的自白</td>\n",
       "      <td>“广告优化师”虽说算不上新兴职业,但是对于圈外人,甚至正在做这个行业的同学,恐怕也不能解释得...</td>\n",
       "      <td>中国广告杂志</td>\n",
       "      <td>1565407844</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-08-10 03:30:44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!</td>\n",
       "      <td>据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...</td>\n",
       "      <td>有米科技</td>\n",
       "      <td>1564536424</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-07-31 01:27:04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!</td>\n",
       "      <td>据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...</td>\n",
       "      <td>广告人智库</td>\n",
       "      <td>1566527041</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-08-23 02:24:01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>广告优化师在家办公,竟然......</td>\n",
       "      <td>告优化师终于摆脱了领导们的指点江山以为可以随心所欲了殊不知在家办公却进入了爸妈投食的爱心包围...</td>\n",
       "      <td>热云数据</td>\n",
       "      <td>1580814358</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-02-04 11:05:58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>一个广告优化师的自白</td>\n",
       "      <td>“广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...</td>\n",
       "      <td>九枝兰网络营销</td>\n",
       "      <td>1557716102</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-05-13 02:55:02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>广告优化师:千万爆款广告背后的操盘手</td>\n",
       "      <td>广告优化师这个角色也因此诞生发展.这两年的程序化广告 (Programmatic Adver...</td>\n",
       "      <td>Nativex2020</td>\n",
       "      <td>1592907925</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-06-23 10:25:25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>广告优化师有前途吗?</td>\n",
       "      <td>大家好,这篇文章我们讲一讲广告优化师有前途吗?写这篇文章的目的是看到一些小伙伴比较迷茫,焦虑...</td>\n",
       "      <td>人人都是优化师</td>\n",
       "      <td>1585526030</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-03-29 23:53:50</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>广告优化师是做什么的?</td>\n",
       "      <td>随着互联网发展越来越迅速,广告优化师成为一个新兴职业,对于优化师这个岗位的需求量越来越大,所...</td>\n",
       "      <td>广告运营那些事儿</td>\n",
       "      <td>1588410630</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-05-02 09:10:30</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                  标题  \\\n",
       "0                         一个广告优化师的自白   \n",
       "1  优化师绝对不能错过——《2019移动广告优化师发展报告》完整发布!   \n",
       "2                         一个广告优化师的自白   \n",
       "3   优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!   \n",
       "4   优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!   \n",
       "5                 广告优化师在家办公,竟然......   \n",
       "6                         一个广告优化师的自白   \n",
       "7                 广告优化师:千万爆款广告背后的操盘手   \n",
       "8                         广告优化师有前途吗?   \n",
       "9                        广告优化师是做什么的?   \n",
       "\n",
       "                                                  摘要       source          时间  \\\n",
       "0  “广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...         鸟哥笔记  1557446890   \n",
       "1  课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun10来源:有...        艾奇SEM  1564661286   \n",
       "2  “广告优化师”虽说算不上新兴职业,但是对于圈外人,甚至正在做这个行业的同学,恐怕也不能解释得...       中国广告杂志  1565407844   \n",
       "3  据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...         有米科技  1564536424   \n",
       "4  据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...        广告人智库  1566527041   \n",
       "5  告优化师终于摆脱了领导们的指点江山以为可以随心所欲了殊不知在家办公却进入了爸妈投食的爱心包围...         热云数据  1580814358   \n",
       "6  “广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...      九枝兰网络营销  1557716102   \n",
       "7  广告优化师这个角色也因此诞生发展.这两年的程序化广告 (Programmatic Adver...  Nativex2020  1592907925   \n",
       "8  大家好,这篇文章我们讲一讲广告优化师有前途吗?写这篇文章的目的是看到一些小伙伴比较迷茫,焦虑...      人人都是优化师  1585526030   \n",
       "9  随着互联网发展越来越迅速,广告优化师成为一个新兴职业,对于优化师这个岗位的需求量越来越大,所...     广告运营那些事儿  1588410630   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-05-10 00:08:10  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-08-01 12:08:06  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-08-10 03:30:44  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-07-31 01:27:04  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-08-23 02:24:01  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-02-04 11:05:58  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-05-13 02:55:02  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-06-23 10:25:25  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-03-29 23:53:50  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-05-02 09:10:30  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "ename": "NameError",
     "evalue": "name 'key' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-29-2da5fa15c1a2>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m     80\u001b[0m                   .format(key=\"广告优化师\", k=i), sep=\"\\t\", encoding=\"utf8\") # 将参数修改为广告优化师\n\u001b[0;32m     81\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 82\u001b[1;33m     \u001b[0mdf\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mdf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0massign\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mquery\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m)\u001b[0m  \u001b[1;31m# 区分  query   # name 'key' is not defined  那就是这个还是没有的\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     83\u001b[0m     \u001b[0mdf\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mdf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0massign\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mpage\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m  \u001b[1;31m# 区分  page\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     84\u001b[0m     \u001b[0mlist_df\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mdf\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mNameError\u001b[0m: name 'key' is not defined"
     ]
    }
   ],
   "source": [
    "# 封装整个请求\n",
    "\n",
    "import time\n",
    "from random import random\n",
    "session = HTMLSession()\n",
    "def request_sougou_weixin(url,params):\n",
    "   \n",
    "    r = session.get( url, params = payload, )\n",
    "    \n",
    "    \n",
    "    主要元素 =  r.html.xpath( '//ul[@class=\"news-list\"]/li')\n",
    "\n",
    "    dict_xpaths = {\n",
    "        'text':{\n",
    "            'source':'//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/text()',\n",
    "            '时间':'//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/@t',       \n",
    "        },\n",
    "        'text_content':{\n",
    "            '标题':'//div[contains(@class,\"txt-box\")]/h3/a',\n",
    "            '摘要':'//div[contains(@class,\"txt-box\")]/p'\n",
    "        },\n",
    "        'href':{\n",
    "            \"公众号链接\":'//div[contains(@class,\"txt-box\")]/div[@class=\"s-p\"]/a/@href',\n",
    "            \"文章链接\":'//div[contains(@class,\"txt-box\")]/h3/a/@href',\n",
    "        }\n",
    "    }\n",
    "\n",
    "\n",
    "    def get_e_text_content(_xpath_):\n",
    "        # 高级列表推导\n",
    "        暂存结果 = [e.xpath(_xpath_)[0].lxml.text_content() for e in 主要元素]\n",
    "\n",
    "        return(暂存结果)\n",
    "\n",
    "    def get_e_text(_xpath_):\n",
    "        暂存结果 = [\"\".join([x.strip() if type(x) is str else x.text.strip() for x in e.xpath(_xpath_)]) for e in 主要元素]\n",
    "        return(暂存结果)\n",
    "\n",
    "    def get_e_href(_xpath_): # name 'e' is not defined 只是需要来调换下这句语句的位置放在最上面就是可以了\n",
    "        # 高级列表推导\n",
    "        暂存结果 = [\"https://weixin.sogou.com\"+item\\\n",
    "                for e in 主要元素\n",
    "                for item in e.xpath(_xpath_)\n",
    "                ]\n",
    "        return(暂存结果)\n",
    "\n",
    "    数据字典 = dict()\n",
    "    数据字典 = {k:get_e_text_content(v) for k,v in dict_xpaths['text_content'].items()}\n",
    "\n",
    "    数据字典.update({k:get_e_text(v) for k,v in dict_xpaths['text'].items()})\n",
    "    数据字典.update({k:get_e_href(v) for k,v in dict_xpaths['href'].items()})\n",
    "\n",
    "    数据 = pd.DataFrame(数据字典)\n",
    "    数据 = 数据.assign(\n",
    "        格式化时间 = lambda x: pd.to_datetime(x[\"时间\"], unit='s').dt.strftime('%Y-%m-%d %H:%M:%S')\n",
    "    )\n",
    "    return(数据)\n",
    "\n",
    "\n",
    "url = \"https://weixin.sogou.com/weixin\"\n",
    "\n",
    "\n",
    "list_df=[]\n",
    "for i in range(1,10):\n",
    "    print(\"第\",i,\"页\")\n",
    "    payload = {\n",
    "        \"query\":\"广告优化师\", # 修改参数\n",
    "        \"type\":\"2\",\n",
    "        \"page\":i\n",
    "\n",
    "    } \n",
    "    print(\"payload:\",payload)\n",
    "    print(\"url:\",url)\n",
    "    time.sleep(10+10*random())                          # 'list' object has no attribute 'sleep' 是没有导入这个包而已，import time， 又出现了name 'random' is not defined  https://blog.csdn.net/jiahao1186/article/details/90166944 于是就是import random https://blog.csdn.net/BTUJACK/article/details/83815984  'module' object is not callable 又来这个\n",
    "    df = request_sougou_weixin(url,params=payload)      # 是import的导入机制有关，https://blog.csdn.net/u014221266/article/details/53515750  from random import random 修改了导入模式就是可以了\n",
    "    print(\"第\",i,\"页\",\"的Dataframe\")\n",
    "    display(df)\n",
    "    \n",
    "    df.to_csv(\"广告优化师_sougou_weixin_{key}_{k}.tsv\"\\\n",
    "                  .format(key=\"广告优化师\", k=i), sep=\"\\t\", encoding=\"utf8\") # 将参数修改为广告优化师\n",
    "        \n",
    "    df = df.assign (query = key)  # 区分  query   # name 'key' is not defined  那就是这个还是没有的\n",
    "    df = df.assign (page = i)  # 区分  page    \n",
    "    list_df.append(df)\n",
    "    \n",
    "\n",
    "df_all = pd.concat(list_df).reset_index()\n",
    "df_all.index.name = '序'\n",
    "\n",
    "df_all.to_excel(\"广告优化师_sougou_weixin_翻页_5.xlsx\",\\\n",
    "                sheet_name=\"_\".join(query))\n",
    "# 预估时间: 4*5秒*10 =200\n",
    "# 预估数量: 4*40*10 =1600\n",
    "\n",
    "# 成功了"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<PreparedRequest [GET]>"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.request"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'query': ['广告优化师'], 'type': ['2'], 'page': ['1'], 'ie': ['utf8']}\n",
      "  scheme netloc path params  \\\n",
      "0                             \n",
      "1                             \n",
      "2                             \n",
      "3                             \n",
      "4                             \n",
      "5                             \n",
      "6                             \n",
      "7                             \n",
      "8                             \n",
      "9                             \n",
      "\n",
      "                                               query fragment  \n",
      "0  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "1  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "2  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "3  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "4  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "5  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "6  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "7  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "8  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "9  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "广告优化师 10\n",
      "参数_query_X_page {1: {'query': ['广告优化师'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}, 2: {'query': ['广告优化师'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}, 3: {'query': ['广告优化师'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}, 4: {'query': ['广告优化师'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}, 5: {'query': ['广告优化师'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}, 6: {'query': ['广告优化师'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}, 7: {'query': ['广告优化师'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}, 8: {'query': ['广告优化师'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}, 9: {'query': ['广告优化师'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}}\n",
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>一个广告优化师的自白</td>\n",
       "      <td>“广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...</td>\n",
       "      <td>鸟哥笔记</td>\n",
       "      <td>1557446890</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-05-10 00:08:10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>优化师绝对不能错过——《2019移动广告优化师发展报告》完整发布!</td>\n",
       "      <td>课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun10来源:有...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1564661286</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-08-01 12:08:06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>一个广告优化师的自白</td>\n",
       "      <td>“广告优化师”虽说算不上新兴职业,但是对于圈外人,甚至正在做这个行业的同学,恐怕也不能解释得...</td>\n",
       "      <td>中国广告杂志</td>\n",
       "      <td>1565407844</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-08-10 03:30:44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!</td>\n",
       "      <td>据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...</td>\n",
       "      <td>有米科技</td>\n",
       "      <td>1564536424</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-07-31 01:27:04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!</td>\n",
       "      <td>据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...</td>\n",
       "      <td>广告人智库</td>\n",
       "      <td>1566527041</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-08-23 02:24:01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>广告优化师在家办公,竟然......</td>\n",
       "      <td>告优化师终于摆脱了领导们的指点江山以为可以随心所欲了殊不知在家办公却进入了爸妈投食的爱心包围...</td>\n",
       "      <td>热云数据</td>\n",
       "      <td>1580814358</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-02-04 11:05:58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>一个广告优化师的自白</td>\n",
       "      <td>“广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...</td>\n",
       "      <td>九枝兰网络营销</td>\n",
       "      <td>1557716102</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-05-13 02:55:02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>广告优化师:千万爆款广告背后的操盘手</td>\n",
       "      <td>广告优化师这个角色也因此诞生发展.这两年的程序化广告 (Programmatic Adver...</td>\n",
       "      <td>Nativex2020</td>\n",
       "      <td>1592907925</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-06-23 10:25:25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>广告优化师有前途吗?</td>\n",
       "      <td>大家好,这篇文章我们讲一讲广告优化师有前途吗?写这篇文章的目的是看到一些小伙伴比较迷茫,焦虑...</td>\n",
       "      <td>人人都是优化师</td>\n",
       "      <td>1585526030</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-03-29 23:53:50</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>广告优化师是做什么的?</td>\n",
       "      <td>随着互联网发展越来越迅速,广告优化师成为一个新兴职业,对于优化师这个岗位的需求量越来越大,所...</td>\n",
       "      <td>广告运营那些事儿</td>\n",
       "      <td>1588410630</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-05-02 09:10:30</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                  标题  \\\n",
       "0                         一个广告优化师的自白   \n",
       "1  优化师绝对不能错过——《2019移动广告优化师发展报告》完整发布!   \n",
       "2                         一个广告优化师的自白   \n",
       "3   优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!   \n",
       "4   优化师绝不能错过——《2019移动广告优化师发展报告》完整发布!   \n",
       "5                 广告优化师在家办公,竟然......   \n",
       "6                         一个广告优化师的自白   \n",
       "7                 广告优化师:千万爆款广告背后的操盘手   \n",
       "8                         广告优化师有前途吗?   \n",
       "9                        广告优化师是做什么的?   \n",
       "\n",
       "                                                  摘要       source          时间  \\\n",
       "0  “广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...         鸟哥笔记  1557446890   \n",
       "1  课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun10来源:有...        艾奇SEM  1564661286   \n",
       "2  “广告优化师”虽说算不上新兴职业,但是对于圈外人,甚至正在做这个行业的同学,恐怕也不能解释得...       中国广告杂志  1565407844   \n",
       "3  据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...         有米科技  1564536424   \n",
       "4  据不完全统计,中国约20万广告优化师支撑了信息流广告市场超3000亿的流水,广告优化师已成为...        广告人智库  1566527041   \n",
       "5  告优化师终于摆脱了领导们的指点江山以为可以随心所欲了殊不知在家办公却进入了爸妈投食的爱心包围...         热云数据  1580814358   \n",
       "6  “广告优化师”虽然说算不上新兴职业,但是对与圈外人,甚至正在做这个行业的同学恐怕也不能解释得...      九枝兰网络营销  1557716102   \n",
       "7  广告优化师这个角色也因此诞生发展.这两年的程序化广告 (Programmatic Adver...  Nativex2020  1592907925   \n",
       "8  大家好,这篇文章我们讲一讲广告优化师有前途吗?写这篇文章的目的是看到一些小伙伴比较迷茫,焦虑...      人人都是优化师  1585526030   \n",
       "9  随着互联网发展越来越迅速,广告优化师成为一个新兴职业,对于优化师这个岗位的需求量越来越大,所...     广告运营那些事儿  1588410630   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-05-10 00:08:10  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-08-01 12:08:06  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-08-10 03:30:44  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-07-31 01:27:04  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-08-23 02:24:01  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-02-04 11:05:58  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-05-13 02:55:02  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-06-23 10:25:25  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-03-29 23:53:50  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-05-02 09:10:30  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>你一定是疯了:年纪轻轻就当上广告优化师</td>\n",
       "      <td>是的,广告优化师很难越阶,他的天花板没有大家想象的那么高,而且他也不像医生那种,是越做越值钱...</td>\n",
       "      <td>远丰传播官</td>\n",
       "      <td>1594031029</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-07-06 10:23:49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>【第10期】如何成为一位厉害的广告优化师</td>\n",
       "      <td>大部分广告优化师只掌握了环比、同比、百分比等数据描述的基础方法和折线图、柱状图等基础图表,优...</td>\n",
       "      <td>华章计算机</td>\n",
       "      <td>1593212453</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-06-26 23:00:53</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>顶级广告优化师必备的数据分析思维</td>\n",
       "      <td>同样,作为广告优化师在做分析时,也需要有数据分析思维.数据分析思维可以有效地帮助我们优化账户...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1558699830</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-05-24 12:10:30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>月入2万的广告优化师,最常用的3个excel函数!</td>\n",
       "      <td>数据透视 对广告优化师的作用:分类筛选查看广告投放数据. 比如下面这个图...vlookup...</td>\n",
       "      <td>广告投放入门</td>\n",
       "      <td>1587650424</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-04-23 14:00:24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>广告优化师如何快速成长?总监教你!</td>\n",
       "      <td>课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun10广告优化...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1545135164</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-12-18 12:12:44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>信息流广告优化师,未来3~5年职业规划参考</td>\n",
       "      <td>信息流广告优化师,日常一天的工作是怎样的?信息流广告投放小白怎么入门?给刚毕业和想转行的人爱...</td>\n",
       "      <td>广告投放入门</td>\n",
       "      <td>1594562481</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-07-12 14:01:21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>如何成为一个优秀的海外广告优化师?</td>\n",
       "      <td>很多人常常问我一个好的海外广告优化师到底应该具备什么品质,我带一支将近20人的Mediabu...</td>\n",
       "      <td>全球UA黑客群</td>\n",
       "      <td>1554782128</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-04-09 03:55:28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>广告优化师是一份什么样的工作?</td>\n",
       "      <td>广告优化师是负责处理广告投放过程中一系列问题的人,大的范畴属于营销,是进入互联网行业门槛比较...</td>\n",
       "      <td>广个告</td>\n",
       "      <td>1588068056</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-04-28 10:00:56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>求职难!0经验广告优化师频繁遭拒,给你三个建议!</td>\n",
       "      <td>我想转行做广告优化师,但是我今天投出去10个公司,没有一个回复我,是因为我投的不够多吗?是正...</td>\n",
       "      <td>广告投放入门</td>\n",
       "      <td>1587823242</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-04-25 14:00:42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>信息流广告优化师这个职业未来发展怎么样?</td>\n",
       "      <td>要成为一个高水平的优化师,必须要深入了解广告原理,就像要成为一个专业的赛车手,一定要了解引擎...</td>\n",
       "      <td>信息流大西</td>\n",
       "      <td>1568817674</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-09-18 14:41:14</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                          标题  \\\n",
       "0        你一定是疯了:年纪轻轻就当上广告优化师   \n",
       "1       【第10期】如何成为一位厉害的广告优化师   \n",
       "2           顶级广告优化师必备的数据分析思维   \n",
       "3  月入2万的广告优化师,最常用的3个excel函数!   \n",
       "4          广告优化师如何快速成长?总监教你!   \n",
       "5      信息流广告优化师,未来3~5年职业规划参考   \n",
       "6          如何成为一个优秀的海外广告优化师?   \n",
       "7            广告优化师是一份什么样的工作?   \n",
       "8   求职难!0经验广告优化师频繁遭拒,给你三个建议!   \n",
       "9       信息流广告优化师这个职业未来发展怎么样?   \n",
       "\n",
       "                                                  摘要   source          时间  \\\n",
       "0  是的,广告优化师很难越阶,他的天花板没有大家想象的那么高,而且他也不像医生那种,是越做越值钱...    远丰传播官  1594031029   \n",
       "1  大部分广告优化师只掌握了环比、同比、百分比等数据描述的基础方法和折线图、柱状图等基础图表,优...    华章计算机  1593212453   \n",
       "2  同样,作为广告优化师在做分析时,也需要有数据分析思维.数据分析思维可以有效地帮助我们优化账户...    艾奇SEM  1558699830   \n",
       "3  数据透视 对广告优化师的作用:分类筛选查看广告投放数据. 比如下面这个图...vlookup...   广告投放入门  1587650424   \n",
       "4  课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun10广告优化...    艾奇SEM  1545135164   \n",
       "5  信息流广告优化师,日常一天的工作是怎样的?信息流广告投放小白怎么入门?给刚毕业和想转行的人爱...   广告投放入门  1594562481   \n",
       "6  很多人常常问我一个好的海外广告优化师到底应该具备什么品质,我带一支将近20人的Mediabu...  全球UA黑客群  1554782128   \n",
       "7  广告优化师是负责处理广告投放过程中一系列问题的人,大的范畴属于营销,是进入互联网行业门槛比较...      广个告  1588068056   \n",
       "8  我想转行做广告优化师,但是我今天投出去10个公司,没有一个回复我,是因为我投的不够多吗?是正...   广告投放入门  1587823242   \n",
       "9  要成为一个高水平的优化师,必须要深入了解广告原理,就像要成为一个专业的赛车手,一定要了解引擎...    信息流大西  1568817674   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-07-06 10:23:49  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-06-26 23:00:53  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-05-24 12:10:30  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-04-23 14:00:24  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-12-18 12:12:44  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-07-12 14:01:21  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-04-09 03:55:28  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-04-28 10:00:56  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-04-25 14:00:42  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-09-18 14:41:14  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>如何成为一名优秀的信息流广告优化师?</td>\n",
       "      <td>竞品分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1513168778</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2017-12-13 12:39:38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>一个广告优化师眼中2019年流量市场的变化</td>\n",
       "      <td>小行业或者部分优化师还在观望,建议可以尝试一下.尝试之外,有必要做深入的研究.目前来说,百度...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1577005904</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-12-22 09:11:44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>信息流广告优化师,日常一天的工作是怎样的?</td>\n",
       "      <td>【下下篇预告】从人事岗位转行广告优化师,一周内她拿到6K+提成的offer</td>\n",
       "      <td>广告投放入门</td>\n",
       "      <td>1587132028</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-04-17 14:00:28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>月入20000的信息流广告优化师,是怎么做账户优化的?</td>\n",
       "      <td>很多人认为信息流广告就是靠天吃饭,能不能测试出王牌计划,全部靠运气.而负责投放信息流广告的优...</td>\n",
       "      <td>牛商网</td>\n",
       "      <td>1554799944</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-04-09 08:52:24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>月薪35K/Facebook广告优化师:法语/西语/日语/俄语/德语/韩语/葡语/意大利语专业优先</td>\n",
       "      <td>›月薪35K/Facebook广告优化师:法语/西语/日语/俄语/德语/韩语/葡语/意大利语...</td>\n",
       "      <td>外语职位精选</td>\n",
       "      <td>1586737332</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-04-13 00:22:12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>【周四直播】高阶广告优化师必备的黄金思维</td>\n",
       "      <td>广告优化师的工作日常2、高阶优化师必备:黄金思维3、如何才能拥有「黄金思维」4、广告优化师成...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1591238964</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-06-04 02:49:24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>专访 | 未来的广告优化师=SEM+Feed+其他(文末赠书)</td>\n",
       "      <td>因为未来的广告优化师=SEM+Feed+其他.最后想说的是,做营销一定要有自己的思维模型或者...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1540297240</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-10-23 12:20:40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>【仅开2期】广告优化师年终汇报速成班明晚开班啦!</td>\n",
       "      <td>机会来了,年底针对广告优化师行业,艾课网特别推出了广告优化师年终汇报速成班,为你揭秘完美年报...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1574078605</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-11-18 12:03:25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>二类电商丨顶级广告优化师必备的“数据分析”思维</td>\n",
       "      <td>与数据和数据分析有关的技能将变得非常有价值.”广告优化师与数据分析二当我们聚焦到互联网广告行...</td>\n",
       "      <td>二类电商</td>\n",
       "      <td>1594197057</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-07-08 08:30:57</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>广告优化师必知的广告知识学习网址(请收藏)</td>\n",
       "      <td>百度系广告学习网址http://yingxiao.baidu.com/edu腾讯广告营销学院...</td>\n",
       "      <td>广告优化营销圈</td>\n",
       "      <td>1593388683</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-06-28 23:58:03</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                  标题  \\\n",
       "0                                 如何成为一名优秀的信息流广告优化师?   \n",
       "1                              一个广告优化师眼中2019年流量市场的变化   \n",
       "2                              信息流广告优化师,日常一天的工作是怎样的?   \n",
       "3                        月入20000的信息流广告优化师,是怎么做账户优化的?   \n",
       "4  月薪35K/Facebook广告优化师:法语/西语/日语/俄语/德语/韩语/葡语/意大利语专业优先   \n",
       "5                               【周四直播】高阶广告优化师必备的黄金思维   \n",
       "6                    专访 | 未来的广告优化师=SEM+Feed+其他(文末赠书)   \n",
       "7                           【仅开2期】广告优化师年终汇报速成班明晚开班啦!   \n",
       "8                            二类电商丨顶级广告优化师必备的“数据分析”思维   \n",
       "9                              广告优化师必知的广告知识学习网址(请收藏)   \n",
       "\n",
       "                                                  摘要   source          时间  \\\n",
       "0  竞品分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...    艾奇SEM  1513168778   \n",
       "1  小行业或者部分优化师还在观望,建议可以尝试一下.尝试之外,有必要做深入的研究.目前来说,百度...    艾奇SEM  1577005904   \n",
       "2              【下下篇预告】从人事岗位转行广告优化师,一周内她拿到6K+提成的offer   广告投放入门  1587132028   \n",
       "3  很多人认为信息流广告就是靠天吃饭,能不能测试出王牌计划,全部靠运气.而负责投放信息流广告的优...      牛商网  1554799944   \n",
       "4  ›月薪35K/Facebook广告优化师:法语/西语/日语/俄语/德语/韩语/葡语/意大利语...   外语职位精选  1586737332   \n",
       "5  广告优化师的工作日常2、高阶优化师必备:黄金思维3、如何才能拥有「黄金思维」4、广告优化师成...    艾奇SEM  1591238964   \n",
       "6  因为未来的广告优化师=SEM+Feed+其他.最后想说的是,做营销一定要有自己的思维模型或者...    艾奇SEM  1540297240   \n",
       "7  机会来了,年底针对广告优化师行业,艾课网特别推出了广告优化师年终汇报速成班,为你揭秘完美年报...    艾奇SEM  1574078605   \n",
       "8  与数据和数据分析有关的技能将变得非常有价值.”广告优化师与数据分析二当我们聚焦到互联网广告行...     二类电商  1594197057   \n",
       "9  百度系广告学习网址http://yingxiao.baidu.com/edu腾讯广告营销学院...  广告优化营销圈  1593388683   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2017-12-13 12:39:38  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-12-22 09:11:44  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-04-17 14:00:28  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-04-09 08:52:24  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-04-13 00:22:12  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-06-04 02:49:24  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-10-23 12:20:40  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-11-18 12:03:25  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-07-08 08:30:57  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-06-28 23:58:03  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>如何成为一个优秀的信息流广告优化师?必备2大技能!</td>\n",
       "      <td>竞品分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1574510628</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-11-23 12:03:48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>广告优化师集训营 | 头条学院最具挑战性课程 你敢来吗?</td>\n",
       "      <td>你就是我们想要找的人头条广告优化师集训营开始招募啦! 最体系:互联网营销,广告等岗位干货知识...</td>\n",
       "      <td>头条学院</td>\n",
       "      <td>1498481306</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2017-06-26 12:48:26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>广告优化师必须知道的广告变现入坑指南</td>\n",
       "      <td>引言作为一个广告投放从业人员,入门时便有人告诉我,应该知道什么知识,什么指标.当时看的是宋星...</td>\n",
       "      <td>互联网台风号</td>\n",
       "      <td>1584868433</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-03-22 09:13:53</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>一个成功的二类电商广告优化师晋升之路!</td>\n",
       "      <td>广告优化干货分享先来看下二类电商广告投放流程:信息流广告投放漏斗图主要分展示、点击、访问、咨...</td>\n",
       "      <td>二类电商运营</td>\n",
       "      <td>1569756917</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-09-29 11:35:17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>广告优化师常用的6大数据分析方法</td>\n",
       "      <td>假设检验 1、参数检验 是在已知总体分布的条件下(一股要求总体服从正态分布)对一些主要的参数...</td>\n",
       "      <td>广告优化营销圈</td>\n",
       "      <td>1582955066</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-02-29 05:44:26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>采访了30多位广告优化师总结出的广告营销精髓!</td>\n",
       "      <td>优化师应着重做好门店辐射范围内的广告地域定向,同时也要在广告种设计一些新颖的互动,例如输入住...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1550837949</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-02-22 12:19:09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>陈第:致广告优化师和营销从业者朋友的邀请信</td>\n",
       "      <td>亲爱的广告优化师、营销从业者朋友们: 启信好! 刚刚过去的上半年,可谓是这十年来最变化多端的...</td>\n",
       "      <td>有米科技</td>\n",
       "      <td>1563526382</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-07-19 08:53:02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>喜大普奔!这几十个广告优化师微信群,终于有管理员了!</td>\n",
       "      <td>我终于可以给创建已久的几十个广告优化师微信群,设置管理员了!第一批管理员,我们将从已加入艾奇...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1534769013</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-08-20 12:43:33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>【走进服务商】派瑞*腾讯广告:如何让优化师10分钟完成3小时的工作量?</td>\n",
       "      <td>原来优化师采用人工盯盘,原来完成的广告数量需要耗费2到3个小时,现在10分钟就能完成,极大降...</td>\n",
       "      <td>广告营销界</td>\n",
       "      <td>1590714221</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-05-29 01:03:41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>信息流广告优化师如何快速成长?</td>\n",
       "      <td>流量入口 了解各大流量入口的用户特征,是做好广告投放的前提.平台粘性用户和广告主的目标用户的...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1528204319</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-06-05 13:11:59</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                    标题  \\\n",
       "0            如何成为一个优秀的信息流广告优化师?必备2大技能!   \n",
       "1         广告优化师集训营 | 头条学院最具挑战性课程 你敢来吗?   \n",
       "2                   广告优化师必须知道的广告变现入坑指南   \n",
       "3                  一个成功的二类电商广告优化师晋升之路!   \n",
       "4                     广告优化师常用的6大数据分析方法   \n",
       "5              采访了30多位广告优化师总结出的广告营销精髓!   \n",
       "6                陈第:致广告优化师和营销从业者朋友的邀请信   \n",
       "7           喜大普奔!这几十个广告优化师微信群,终于有管理员了!   \n",
       "8  【走进服务商】派瑞*腾讯广告:如何让优化师10分钟完成3小时的工作量?   \n",
       "9                      信息流广告优化师如何快速成长?   \n",
       "\n",
       "                                                  摘要   source          时间  \\\n",
       "0  竞品分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...    艾奇SEM  1574510628   \n",
       "1  你就是我们想要找的人头条广告优化师集训营开始招募啦! 最体系:互联网营销,广告等岗位干货知识...     头条学院  1498481306   \n",
       "2  引言作为一个广告投放从业人员,入门时便有人告诉我,应该知道什么知识,什么指标.当时看的是宋星...   互联网台风号  1584868433   \n",
       "3  广告优化干货分享先来看下二类电商广告投放流程:信息流广告投放漏斗图主要分展示、点击、访问、咨...   二类电商运营  1569756917   \n",
       "4  假设检验 1、参数检验 是在已知总体分布的条件下(一股要求总体服从正态分布)对一些主要的参数...  广告优化营销圈  1582955066   \n",
       "5  优化师应着重做好门店辐射范围内的广告地域定向,同时也要在广告种设计一些新颖的互动,例如输入住...    艾奇SEM  1550837949   \n",
       "6  亲爱的广告优化师、营销从业者朋友们: 启信好! 刚刚过去的上半年,可谓是这十年来最变化多端的...     有米科技  1563526382   \n",
       "7  我终于可以给创建已久的几十个广告优化师微信群,设置管理员了!第一批管理员,我们将从已加入艾奇...    艾奇SEM  1534769013   \n",
       "8  原来优化师采用人工盯盘,原来完成的广告数量需要耗费2到3个小时,现在10分钟就能完成,极大降...    广告营销界  1590714221   \n",
       "9  流量入口 了解各大流量入口的用户特征,是做好广告投放的前提.平台粘性用户和广告主的目标用户的...    艾奇SEM  1528204319   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-11-23 12:03:48  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2017-06-26 12:48:26  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-03-22 09:13:53  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-09-29 11:35:17  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-02-29 05:44:26  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-02-22 12:19:09  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-07-19 08:53:02  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-08-20 12:43:33  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-05-29 01:03:41  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-06-05 13:11:59  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>李月:今日头条手游广告优化秘诀,怎样算合格广告优化师?</td>\n",
       "      <td>这时优化师的成就感非常高,广告创业也是让优化师痛并快乐着.而广告创意对研发又有怎样的启发呢?...</td>\n",
       "      <td>GameLook</td>\n",
       "      <td>1509033735</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2017-10-26 16:02:15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>SEM 广告优化师如何快速成长?老司机告带你起飞</td>\n",
       "      <td>某大型医疗集团项目负责人艾奇在线明星优化师艾奇在线年度优秀专栏作者分享大纲分享内容:1. S...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1589374840</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-05-13 13:00:40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>广州  优蜜移动【聘】广告优化师/运营/客服/平面设计/渠道专员等</td>\n",
       "      <td>广告优化师/sem职位描述:1、独立进行Google、Facebook等其他平台的广告投放....</td>\n",
       "      <td>手游那点事</td>\n",
       "      <td>1454247107</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2016-01-31 13:31:47</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>深度干货 | 月入两万的信息流广告优化师,是怎么做账户优化的?</td>\n",
       "      <td>以上3个问题,很多优化师在优化工作中都会遇到,今天的内容有点干,有点长,但行之有效.故事从笔...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1530103556</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-06-27 12:45:56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>会员私享:高阶广告优化师必备的黄金思维</td>\n",
       "      <td>广告优化师不单单是“表哥”“表姐”,也不仅仅只能做亡羊补牢式的先污染后治理的工作方式了.随着...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1555675712</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-04-19 12:08:32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>【视频课程】信息流广告优化师如何快速成长?</td>\n",
       "      <td>【课程主题】信息流广告优化师如何快速成长?【讲师】静静老师艾奇学院·信息流广告金牌讲师精通招...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1539001226</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-10-08 12:20:26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>红利消失,市场缩小,同是广告优化师,你是不是也有被淘汰的危机感?</td>\n",
       "      <td>以上只是个人对我们广告优化师岗位的一些见解,如果哪里说的不到位,请各位客官们包涵!▼  行业...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1545306324</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-12-20 11:45:24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>广州93年爱电影女生,本科毕业,广告优化师,年入15万|565会员推荐</td>\n",
       "      <td>广告优化师户口:广州收入: 15万小小介绍家庭成员由爸爸妈妈哥哥组成,无经济压力,小日子过得...</td>\n",
       "      <td>GoodDate</td>\n",
       "      <td>1594044649</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2020-07-06 14:10:49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>期待值Max!中国第一场专属移动广告优化师的大会要来了</td>\n",
       "      <td>都是『 移动广告优化师 』运用自身智慧+创意的精妙呈现,都是技术+经验的双重结合.毫无疑问,...</td>\n",
       "      <td>有米科技</td>\n",
       "      <td>1536890059</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-09-14 01:54:19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>月薪30000的广告优化师,不如写横幅的小贩?</td>\n",
       "      <td>进群 / 课程咨询:aiqijun14(来源:广告文案圈)如题,我们今天聊聊横幅广告文案说起...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1533386711</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-08-04 12:45:11</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                    标题  \\\n",
       "0          李月:今日头条手游广告优化秘诀,怎样算合格广告优化师?   \n",
       "1             SEM 广告优化师如何快速成长?老司机告带你起飞   \n",
       "2    广州  优蜜移动【聘】广告优化师/运营/客服/平面设计/渠道专员等   \n",
       "3      深度干货 | 月入两万的信息流广告优化师,是怎么做账户优化的?   \n",
       "4                  会员私享:高阶广告优化师必备的黄金思维   \n",
       "5                【视频课程】信息流广告优化师如何快速成长?   \n",
       "6     红利消失,市场缩小,同是广告优化师,你是不是也有被淘汰的危机感?   \n",
       "7  广州93年爱电影女生,本科毕业,广告优化师,年入15万|565会员推荐   \n",
       "8          期待值Max!中国第一场专属移动广告优化师的大会要来了   \n",
       "9              月薪30000的广告优化师,不如写横幅的小贩?   \n",
       "\n",
       "                                                  摘要    source          时间  \\\n",
       "0  这时优化师的成就感非常高,广告创业也是让优化师痛并快乐着.而广告创意对研发又有怎样的启发呢?...  GameLook  1509033735   \n",
       "1  某大型医疗集团项目负责人艾奇在线明星优化师艾奇在线年度优秀专栏作者分享大纲分享内容:1. S...     艾奇SEM  1589374840   \n",
       "2  广告优化师/sem职位描述:1、独立进行Google、Facebook等其他平台的广告投放....     手游那点事  1454247107   \n",
       "3  以上3个问题,很多优化师在优化工作中都会遇到,今天的内容有点干,有点长,但行之有效.故事从笔...     艾奇SEM  1530103556   \n",
       "4  广告优化师不单单是“表哥”“表姐”,也不仅仅只能做亡羊补牢式的先污染后治理的工作方式了.随着...     艾奇SEM  1555675712   \n",
       "5  【课程主题】信息流广告优化师如何快速成长?【讲师】静静老师艾奇学院·信息流广告金牌讲师精通招...     艾奇SEM  1539001226   \n",
       "6  以上只是个人对我们广告优化师岗位的一些见解,如果哪里说的不到位,请各位客官们包涵!▼  行业...     艾奇SEM  1545306324   \n",
       "7  广告优化师户口:广州收入: 15万小小介绍家庭成员由爸爸妈妈哥哥组成,无经济压力,小日子过得...  GoodDate  1594044649   \n",
       "8  都是『 移动广告优化师 』运用自身智慧+创意的精妙呈现,都是技术+经验的双重结合.毫无疑问,...      有米科技  1536890059   \n",
       "9  进群 / 课程咨询:aiqijun14(来源:广告文案圈)如题,我们今天聊聊横幅广告文案说起...     艾奇SEM  1533386711   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2017-10-26 16:02:15  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-05-13 13:00:40  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2016-01-31 13:31:47  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-06-27 12:45:56  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-04-19 12:08:32  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-10-08 12:20:26  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-12-20 11:45:24  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2020-07-06 14:10:49  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-09-14 01:54:19  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-08-04 12:45:11  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>清单:优秀的信息流广告优化师,必备2大技能!</td>\n",
       "      <td>竞品分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1536499649</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-09-09 13:27:29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>信息流/SEM广告优化师都在这里学习交流,欢迎加入~</td>\n",
       "      <td>扫码申请入群2018千人成长俱乐部这是艾奇在线重点打造的优化师学习成长社群.这里汇聚行业大咖...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1536324544</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-09-07 12:49:04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>信息流SEM广告优化师都在这里学习交流,欢迎你也加入~</td>\n",
       "      <td>重点打造的优化师学习成长社群.这里汇聚行业大咖,每周将分享热门产品知识主题.同时,艾奇团队也...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1538310027</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-09-30 12:20:27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>不卖课了!我们为SEM信息流广告优化师提供全年学习服务!</td>\n",
       "      <td>成为很多信息流广告优化师的职场入门课.目前,艾奇在线学习平台(xue.27sem.com)除...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1533089499</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-08-01 02:11:39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>深度干货:月消耗200万的信息流广告优化师,教你如何科学做投放!</td>\n",
       "      <td>课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun66来源:暖...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1573128061</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-11-07 12:01:01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>寻找SEM信息流广告优化师,免费加入3个群!</td>\n",
       "      <td>扫码申请入群2018千人成长俱乐部这是艾奇在线重点打造的优化师学习成长社群.这里汇聚行业大咖...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1533132453</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-08-01 14:07:33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>紫龙互娱(北京)  聘广告优化师/游戏测试工程师</td>\n",
       "      <td>广告优化师岗位职责:  1、负责公司游戏产品在百度搜索、贴吧、百度DSP等精准广告平台的投放...</td>\n",
       "      <td>游戏智库</td>\n",
       "      <td>1466344245</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2016-06-19 13:50:45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Lei呀Lei呀~腾讯广告优化师认证考试百万福利正式发放</td>\n",
       "      <td>截至今年9月30日,腾讯广告将拿出100万元,为获得“游戏行业营销顾问”认证的学员,报销初级...</td>\n",
       "      <td>腾讯广告</td>\n",
       "      <td>1559655734</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2019-06-04 13:42:14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>信息流SEM广告优化师都在这里学习交流,欢迎你也加入~</td>\n",
       "      <td>扫码申请入群2018千人成长俱乐部这是艾奇在线重点打造的优化师学习成长社群.这里汇聚行业大咖...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1531658733</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-07-15 12:45:33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>【国内移动互联网行业报告】作为广告优化师,你更看好哪个平台?</td>\n",
       "      <td>进群 / 课程咨询:aiqijun14商务合作&amp;投稿:aiqijun27来源:Trustda...</td>\n",
       "      <td>艾奇SEM</td>\n",
       "      <td>1534856538</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>https://weixin.sogou.com/link?url=dn9a_-gY295K...</td>\n",
       "      <td>2018-08-21 13:02:18</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                 标题  \\\n",
       "0            清单:优秀的信息流广告优化师,必备2大技能!   \n",
       "1        信息流/SEM广告优化师都在这里学习交流,欢迎加入~   \n",
       "2       信息流SEM广告优化师都在这里学习交流,欢迎你也加入~   \n",
       "3      不卖课了!我们为SEM信息流广告优化师提供全年学习服务!   \n",
       "4  深度干货:月消耗200万的信息流广告优化师,教你如何科学做投放!   \n",
       "5            寻找SEM信息流广告优化师,免费加入3个群!   \n",
       "6          紫龙互娱(北京)  聘广告优化师/游戏测试工程师   \n",
       "7      Lei呀Lei呀~腾讯广告优化师认证考试百万福利正式发放   \n",
       "8       信息流SEM广告优化师都在这里学习交流,欢迎你也加入~   \n",
       "9    【国内移动互联网行业报告】作为广告优化师,你更看好哪个平台?   \n",
       "\n",
       "                                                  摘要 source          时间  \\\n",
       "0  竞品分析 优化师在投放一个新的产品时,除了了解产品本身,也要了解竞品在平台投放的情况,也就是...  艾奇SEM  1536499649   \n",
       "1  扫码申请入群2018千人成长俱乐部这是艾奇在线重点打造的优化师学习成长社群.这里汇聚行业大咖...  艾奇SEM  1536324544   \n",
       "2  重点打造的优化师学习成长社群.这里汇聚行业大咖,每周将分享热门产品知识主题.同时,艾奇团队也...  艾奇SEM  1538310027   \n",
       "3  成为很多信息流广告优化师的职场入门课.目前,艾奇在线学习平台(xue.27sem.com)除...  艾奇SEM  1533089499   \n",
       "4  课程学习 | 人才孵化 | 求职招聘 | 资源对接加艾奇明猪微信:aiqijun66来源:暖...  艾奇SEM  1573128061   \n",
       "5  扫码申请入群2018千人成长俱乐部这是艾奇在线重点打造的优化师学习成长社群.这里汇聚行业大咖...  艾奇SEM  1533132453   \n",
       "6  广告优化师岗位职责:  1、负责公司游戏产品在百度搜索、贴吧、百度DSP等精准广告平台的投放...   游戏智库  1466344245   \n",
       "7  截至今年9月30日,腾讯广告将拿出100万元,为获得“游戏行业营销顾问”认证的学员,报销初级...   腾讯广告  1559655734   \n",
       "8  扫码申请入群2018千人成长俱乐部这是艾奇在线重点打造的优化师学习成长社群.这里汇聚行业大咖...  艾奇SEM  1531658733   \n",
       "9  进群 / 课程咨询:aiqijun14商务合作&投稿:aiqijun27来源:Trustda...  艾奇SEM  1534856538   \n",
       "\n",
       "                                               公众号链接  \\\n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...   \n",
       "\n",
       "                                                文章链接                格式化时间  \n",
       "0  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-09-09 13:27:29  \n",
       "1  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-09-07 12:49:04  \n",
       "2  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-09-30 12:20:27  \n",
       "3  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-08-01 02:11:39  \n",
       "4  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-11-07 12:01:01  \n",
       "5  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-08-01 14:07:33  \n",
       "6  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2016-06-19 13:50:45  \n",
       "7  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2019-06-04 13:42:14  \n",
       "8  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-07-15 12:45:33  \n",
       "9  https://weixin.sogou.com/link?url=dn9a_-gY295K...  2018-08-21 13:02:18  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告优化师'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'query': ['有米科技'], 'type': ['2'], 'page': ['1'], 'ie': ['utf8']}\n",
      "  scheme netloc path params  \\\n",
      "0                             \n",
      "1                             \n",
      "2                             \n",
      "3                             \n",
      "4                             \n",
      "5                             \n",
      "6                             \n",
      "7                             \n",
      "8                             \n",
      "9                             \n",
      "\n",
      "                                               query fragment  \n",
      "0  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "1  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "2  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "3  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "4  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "5  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "6  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "7  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "8  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "9  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "有米科技 10\n",
      "参数_query_X_page {1: {'query': ['有米科技'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}, 2: {'query': ['有米科技'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}, 3: {'query': ['有米科技'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}, 4: {'query': ['有米科技'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}, 5: {'query': ['有米科技'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}, 6: {'query': ['有米科技'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}, 7: {'query': ['有米科技'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}, 8: {'query': ['有米科技'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}, 9: {'query': ['有米科技'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}}\n",
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['有米科技'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'query': ['热云数据'], 'type': ['2'], 'page': ['1'], 'ie': ['utf8']}\n",
      "  scheme netloc path params  \\\n",
      "0                             \n",
      "1                             \n",
      "2                             \n",
      "3                             \n",
      "4                             \n",
      "5                             \n",
      "6                             \n",
      "7                             \n",
      "8                             \n",
      "9                             \n",
      "\n",
      "                                               query fragment  \n",
      "0  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "1  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "2  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "3  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "4  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "5  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "6  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "7  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "8  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "9  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "热云数据 10\n",
      "参数_query_X_page {1: {'query': ['热云数据'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}, 2: {'query': ['热云数据'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}, 3: {'query': ['热云数据'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}, 4: {'query': ['热云数据'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}, 5: {'query': ['热云数据'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}, 6: {'query': ['热云数据'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}, 7: {'query': ['热云数据'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}, 8: {'query': ['热云数据'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}, 9: {'query': ['热云数据'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}}\n",
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['热云数据'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'query': ['广告投放'], 'type': ['2'], 'page': ['1'], 'ie': ['utf8']}\n",
      "  scheme netloc path params  \\\n",
      "0                             \n",
      "1                             \n",
      "2                             \n",
      "3                             \n",
      "4                             \n",
      "5                             \n",
      "6                             \n",
      "7                             \n",
      "8                             \n",
      "9                             \n",
      "\n",
      "                                               query fragment  \n",
      "0  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "1  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "2  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "3  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "4  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "5  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "6  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "7  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "8  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "9  query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%...           \n",
      "广告投放 10\n",
      "参数_query_X_page {1: {'query': ['广告投放'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}, 2: {'query': ['广告投放'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}, 3: {'query': ['广告投放'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}, 4: {'query': ['广告投放'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}, 5: {'query': ['广告投放'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}, 6: {'query': ['广告投放'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}, 7: {'query': ['广告投放'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}, 8: {'query': ['广告投放'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}, 9: {'query': ['广告投放'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}}\n",
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [1], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [2], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [3], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [4], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [5], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [6], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [7], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [8], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "payload {'query': ['广告投放'], 'type': ['2'], 'page': [9], 'ie': ['utf8']}\n",
      "https://weixin.sogou.com/weixin\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>标题</th>\n",
       "      <th>摘要</th>\n",
       "      <th>source</th>\n",
       "      <th>时间</th>\n",
       "      <th>公众号链接</th>\n",
       "      <th>文章链接</th>\n",
       "      <th>格式化时间</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [标题, 摘要, source, 时间, 公众号链接, 文章链接, 格式化时间]\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdz3ktB7yYkDlRxSmYFJL3DhsmS4QoVd74e63QvLssywelyqtfNxIu5R1q4pO3kNMYaxyhsi6ME5pPxa-QbKJ4c7KLFDWrIh4btlOeb156WpH-nGgzEcEak52RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHgQL-6u9xvyuEYJE2njntz1w4lULAoeLiqUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdzK7xL2HTV2qHn_g7DmTkCty4gHM8iVUTst0Pl_VbBirapJWpxyfunHrQXD0cXkHDRvMGxILqUTSLE23P9cnc4X04ek_y8c_T4Ti-6HHhoS4DrxEWG3BVBzmRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdzM5S6WQPhmJ-8gJUVYRQQCBQM_DkIcGijAcNIYngAYzP0naUCwJBdghzTzzXHG8lOoZojDYHrRDnriSkzn0xEa6Z9BIm5_dGovl_cpONisxWkvcFi3uYBRGRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdz4B8K5qWFJ8yt8NjFN3jK603tkh1F5toTXdoJOt-Zg3bkRItvo_krN9_U-MLRf6gdhAzSJlKdEiPO3mmNMuhVRUZAr1DN8SNEtHhtiKYL5ctQHptAPEBaTeO00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdz27EU6UpCZSrDEnTAGItjYwavKBgmn1Yv7BsJOJFaPEI_tBFcd7Eqo24u5OrnDFLnHxy2OesmV_mB1W8ELXkIY3uIvmwxS-13uwQqaNkC9gR1cgR6BbFmTmRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdzoKPw6rTYQ39g8XC_H1yRn6ZnLBwn6tqbVs4m2SeMxce9lJjh17y4WDcYC9gr7Wt-dFoOYS0cfHqk-SPkOsVxZ2cAMfg3nJz8vIUrlavxyDgvYarmkPxBiW4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdzXYjAcua3EMfbsu4WVV1O6SESeXCBryuW1jz1d6bg9d5PCQ6GPBbcIzo-d8sXD2NaEmGvBwdzZMiNT4q5pja7_syszL-ULfE4BS7k-5gv5HyhbzL5OqiO7OO00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdzsJGIqXdnE59c0610-fTUq4LZA-l71BQ_pzBG5QW2XOwOGR6SfOfTOi9bls5dxE1YVG_XS-xVcFuvISzNz3a6qSiq25J1c1JjIsMqj0Z4BgKxavUqA4f186UiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IhJfbo_1k2jXwwvDqyjOWdz9CXf2AAV2H57FCk7eABtALe6zqoAzA9iW-F_88lsE0CY0qDQJfqRpplc4wJSE4_RBSN4NnhQpQy0WPVv6QiulxKpeiwqhjoEbxqTvz_KoR5Z7NQoDDiLk-O00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdzCNMz2wjQHHAibmwP84BQRfWQToCOQmmvbo7WpEP25czpd_NbijG17MOnA0eDI9LQnwuGgmKZXZGlIAmmpawER7cY-13-_e9FkVLjknGmDPy478iigaDPXmRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdzB-wApewJ7TYPsu06XMea1hh1NrGzC8rKDmAmdOMVwG3WvRlzUxuQfPT9UpWYj7G1IpgVJKazLdBWJS09w4TnYTEljfW111RHF1n58dN5t4GlFRo3rN6_vm4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHkPTRd1rpuKy17Bk4UMlcUqQqPnXHd76haUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdz-jEttNjoOiUcT6RIpGYpbyt2DdRP7HX8jZ21qR5eKiU5HNkSp4qSwlmFaQzWhVveI1wNDiLKGk76tDhjeMILHdWF41IY2iFdivZTDXRtOb6DiuJhVoZHbWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdzasshAqqTz3roMc1dPBX7XkQmCK3CjHKdCMtowtaiASxSL0FIUShm8qNudk5Oc2FkIVlblfW6ZmjaLk0Lcq2qOhz23JwCHLoeI40D_NRNxSCMiRXx1VJ3S6UiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdz4LR7k2K8GR_RcdZ85A3Q7lAA1fkqQxnYgSQtbkH6ktuqGTdrdSaQ_5SWDhT9uWJDtoYlHAMvU7yFvV5H6SjfCrUtlAcLOk8MeDg250GE9Kivz8qzHGANWaUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjHRC87BmBMFwwvDqyjOWdzFuNOldiw8tgzGd1EPRnWNBpsQrQMatLfyOU0lK7RL0h9nSqWoSvvWKeCqdjNJRCux7lxkiMhVC_f-vza1lLeZpNCpabUICnWuoRtlE0dPnrZ-WR06ITHeG4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgBZzeMB39qzQwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHn_ULukl7y6Ja-e55bCFpyfcgWoy5vUhfWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgBZzeMB39qzQwvDqyjOWdz-jEttNjoOiUcT6RIpGYpbyt2DdRP7HX8jZ21qR5eKiU5HNkSp4qSwlmFaQzWhVveI1wNDiLKGk76tDhjeMILHT9fcHjVYJKNtx_y10JhWOrbHt_1Ll3ZLWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgBZzeMB39qzQwvDqyjOWdzPZH6UB-tj00N4MOtGIO_V4wqqz7m6cYNAFUIthbQoZp64sTxMRlt1RaW1yWC4htRtGUxQh2JpoHaF9GAWcZb_Cy1dFGuiLOHbSe3qRRI54x_iQmju3vUD24OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgBZzeMB39qzQwvDqyjOWdz9LvWg5GdShx6XTN1_kypulXf_dKIhDb8VJMTqJKnT8PQ9PsBQFI1cN-98HbaOjkNS0PycmR9juYmUBRhnp-_9LJTsDYFzEGfyHlONcamYKDfpUCch8kzFG4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgBZzeMB39qzQwvDqyjOWdzq09HJCOGhGNPZoIZJK0zUs78sf2SBpNEBeqpuqRVjUfjgZdxSAmKObSxPlQ_uKRb3aXXX8h-MimEYmP8uus3sqXE7ad52cdpRlNBguOsnxSR81TcVupCZWRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgBZzeMB39qzQwvDqyjOWdzuXhHfx8POMW-s9sr22bZRti9Kp4ASD5n-8JKIXqyJINegjyLmSHmVGuPLXsNEYBAajn2FbxnyzwpuN3yf4lbgjisMg3T4p1Fl85ONsBZ6MQ97coAHsFxz6UiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHnnWoD1-7d_Gt1O-1seECZj90PkA7EojPqUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzaPdwL_4BhMWlC31gEPPDvmkNHVpkUGF3XOMcMqYd6RWEHstAhxvblwGPmM6-v_iNMJrkkechyeML6wrWN1G_PwrW_TGVLzHHIE8wFmiPz6QVhIWw6GdZ3W4OZCnxixtX&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzh-YE_14N1KX6Cu93XzePdf9RQ7OifCt-hea_ovodgwSjsj9u8EmhH8q6AzxxhPfvBW5jEvDcWEPbkuWDsiLDY-t56546pEa0Yrep4CBsN_LrGCSal7r24-O00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzg8-BlW8CeXtMcbXWkM_JUpVTIwqGS0nySuj6aXTXC19XS7BqJS74liYUzK4k2mFnKkFc448lMaLkAomah0hHGdNL_BmApv1z9UyY7BqQRt4SCXO6TLMzU2RTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzuXhHfx8POMW-s9sr22bZRti9Kp4ASD5n-8JKIXqyJINegjyLmSHmVGuPLXsNEYBAajn2FbxnyzwpuN3yf4lbglfcFTHzmJZNrc96nse3EK5VJtoY-tynluO00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzM5S6WQPhmJ-8gJUVYRQQCBQM_DkIcGijAcNIYngAYzP0naUCwJBdghzTzzXHG8lOoZojDYHrRDnriSkzn0xEazIxtIo70k-yHVSfXRmbPThQUHw45Bpzj6UiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IjzZpUU97pjlQwvDqyjOWdzn0c6JumKdvvffY5HrIs-3cKuVrSjBL33uSwqr4l_FTbJSAii1nD0BKblBz0CMWpP5IRylIB5Bqm1cjAQE2t7Zmht6KGpc7RsIraag7R91nl9imFZkMpPduO00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgAwla_S92HUwwvDqyjOWdzNhrf-p8rlEqptCzYQL_zmKpY52oUjliLhnGVCmpSsP_Lmz5Q4i7QREUYudY3bfRDbhnjb8y0vgdu86OHnkSSegyewsO2hf9YyBl07CG7RAPJNljUAtIalmRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgAwla_S92HUwwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHopwtvF_PJGs-WrmuAvnfUDNHdw1BdW-ZaUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgAwla_S92HUwwvDqyjOWdzKIVPGf00gn_lvoYhjqqlhlKrwWVT8tCmiwvTPvoNqoFMIL7bIjOKzLg0D6sjcANU_r3oFGnmTlQYcdSA79h_SSme-bYP9IRCWDAdwffzNhXpYsQm9ZwoaGRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgAwla_S92HUwwvDqyjOWdzVzSoPxac2snsXIxWfny6_75-s1RZoEJz5N-IJawFXIa2KK1N8ndqfORMFRiUELHG7oEXipXVaQYyUU9xwNCzJPQAYmVQa3eAzvHj-JZd4V4hnPw1CMnwjGRTpLLTNgHY&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2IgAwla_S92HUwwvDqyjOWdzM5S6WQPhmJ-8gJUVYRQQCBQM_DkIcGijAcNIYngAYzP0naUCwJBdghzTzzXHG8lOoZojDYHrRDnriSkzn0xEa2kyxC-uaQ8qlJkNehyhKzYL-Gc6g1ewAKUiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2Ig3rYi4kyfCXgwvDqyjOWdzxyWOQ9PfTLY_fIf4CepwLt6pd9QSDigCeUYyxEq9gYvtCyhkPz6pDUzFbJKaOiN4_MQiMaSbkVPXm8f-YP-LHggNmPl08idY2YTqnEUDSGbviui6_JlOueO00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2Ig3rYi4kyfCXgwvDqyjOWdzGcSbw-IB_ZnQM5lZM0F5EPRK2Cvn1Xp-LMtuqeyZ1zFQgQiZABCTvAU5ko1fVs4Eucdmurv-XYBcPSP9R74QGqO_pcWlnY9bn5Wqfd6v_Ri9qszXCg2T0OO00efWrWmm&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6EzDJysI4ql5MPrOUp16838dGRMI7NnPq6ItnNS7i2Ig3rYi4kyfCXgwvDqyjOWdzrwi7YgNx6_W0nnqX5-IMdJvjUYDMHj9VSL54DninXkM4-7hfVkabIFEHfbfaSandAamTFiu_WUwdq9qFcYHgH-ZdCRH8bofbpNO2YVQXFqGLhPASjnp3I6UiiWOv1GPM&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9e75bqMp9RqllmyPZogvhWxxABthV4BX0u5T3HIUFiHuwvIKO_9GNOMTQ5toOcxvi9b6nsGps5ugLDhManA6LfqGl35OfWS8X_7ruj6JmqIZUHB4IffcmDGrUJAOoxqOYXehTN5Ga699RVRWtRzfuTuqyRllH3fCGGgkRcUKokpjs46dn8Efgxg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyCqOlFHkEAbKiaufBrkPZZQ70gUlZTW3vukhya88LNbBycENcVV_2SuruKlX4AANk0XKFNUQnc_WAcu_a1hbiNWx5KF_WbwR7cbiPp0zwVZ0jFMWwVZhkv3wdVqCwyPdzA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9VZKtkvEyLMCdS_oCInft12-ARySN-TnaybbXlMY0Ici-IzIdxzMyHqyc7UhstLA-hqC1PB2uCr4Xp0NYhb6R1LBjkPodJDXxc9nI8DXIdgkVuIQMV6uLy02pnooSUDW_-PD9rVCv6JqxUhL07wlrURAZ5M6iqN5EYdOJEArPZfbuL0unUdKkuw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9_iosaZliJjh6Cyi29-7vmyJUbp_bVQFR11_LiNLtK8_SSgHmSGaGx_jIcCaV5rNFzuNjpVmDYVteU6VUknITiLSYlwPnIck6rZU6JvuK0kf8rOrOjG94T8FSTYQxGhuslck4ATAdMonZ9dXu1VWOk1vg5PiLB-bt5BXFxxBEksvvzHZXxeLdyg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9jKDo5aw1wsP1qA1qJehMqhkxXcI_bBW2X87-kcdPpOXTLzabP-DiPa8Gj_IJocE7mTv-Ta7ErJn3qw4ZKDSiaNz7GXPo00GY7TGVywdm-zlvSvfJR4hO4Te8Y3P3dsyeXcIX__bbC2QmfIEG9F3qNYe7xm6V9qaie3uOzohUGd3P28temKTOwg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9goSFqP-kVxC-LhUANnlhzVlVdQmqnFvu_iina5otNIarmMEMpH_hNbrORfL-YfVnKwuwqQvMyXo1lKAvDMTxCBwAyg7YGOOg2vV4lwoTreEjSZxGb3llCrW3OQZ2eN8sRbvDEmuNCtA-9ePro4r74T6vCKZyMF7Xl9jJzm29ikNFH6In5Ei3zg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9rwy8fXvHpB5fsVDrVF1oJeZhEfOnzgdR4U1sFsp3dX_L7QVPOZNdInZBc0JWljsTok1uCU8yV-PjBeCr8ycjfIWFNDkSMHIge5cN3694v5F8wkCUsjQmXays2-YrudC7wd5OLbxhNFQthVphefChzXnWK5uxtzyfmRi9dqi_Doxr1dbZWbKUeQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9pJxWoG30CVP0Wrvh0cV5hmTPfw8fOtZiWXn0fDv-qdVvAa4r4YxZXFMcuFqGrVkuKA63hXT0pOW2E1rTFipHvPJs15OmD3PYyvM3d2XbEP4RWMv6-z5CqhzF3QSA71x1hGaDmekdyNWHCmbFCLnCGrJkJm0D1StuNiY2x4uA1LfRtmyIGw2VAg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd9Je0SLBczmCvpoQD1FYQKeOKVXh5gaDY5ZfnFWGq0ZiLVDNh94hhlBSf4Xn6X2ijyzSNEaaaaCFnDBFSUDt7V9kWo0-xSWf2Kk1gGUR66SRPw579rYkO0oY9kaKtRpWzPdDOSAyUz5To9WZtkC3IYqF57W620lhycdCrLHwXGrHQ5eBgmN3LoYQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFYIAkosBZc3oOh35OSgIxs1qXa8Fplpd93dZKBp6ate4vdXzuvd47ZH8W_qSoyXlPc08KVVTiFjqpYPfjVjDjgkXi0455HGz7330gu7Ng-K1OCDxJ1_j-6FeYtkQa19JeD9l9ECMZ0ovN0MXNPhS-Vwc6aDpLV6MHwlpfT3vl3c7Xqc_zBao4FTFQUHuaoS7Asct87XG8sTSfxjh3za6jWA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E46C067CDA5042787CD3BFE332ECAB7957B6075F140C0B' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd9B--wZp1aXpNfsBY2usYNBQPNs0o19D-COBg-THVKC16M7ej4uc_fbrxoCSqnj5gzBUxfm2sMBxsOVnPj3BjZWCyJyfrbBYfgCNiFahromj0v_qk9UrFi2SotbU9DDhu5CTINZyX6aW5pt-qVrlp8MhEdxGtwozOjqseQTrY5dt3y08OLTBhW0A..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd9DchVIVzcnyDFK8OWTMGkrXwtIjqsWt9nJEuBTf5O4Wu78p-WFtONXwz35aMsiqvFJgb0pvZTYlRzWpsRb8YF_BL-V9-3r6ULdpvRuFsnJg2ZLfnrl7nRKnIlJd9pXQQrhYMvTaLo_2fGhlX-s2ADTNJohuLnjg2YwB3ZdenCnm8GX_iHL9MadA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyJyNj2OhOJBI6BdR3R3sSvR67D54uDGfneABPknqCUwy2MccNHBMIdTrP9wX7Wvi2vnoVS0R-IsXckm2Wp-Q0ufFsNd8eDba_uShPuLOrUk-N2qeg2UCMAOFW6cwuUnkdA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd95-o8jrsC6hHeWFB9P2EUvMUwdPHL0RLfjqJnDXG21od2-4OxBOh75xhA7KE82NpYIcnlPEQsDWNIdWMWBgug8CEYYgixiSvE-47xkswCoBVN-98ik8SpYGnS18XcZjSG8tmpVJymw-2reRJ2lLvMD7X4-Eu5hIo2ESFanX07RAXf3q8uRDTfkw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyKx7qOf8pfsQPpQ5-G7WnL6iJ3o_IEx6ZfaL-Es00bZH2T50uml6HM1XXkzmINVVQMNzgFdNaztUszYGdpFdRMCoTRi2ojA4wAMy0LkPFv2UguO1iQS79Yifxjh3za6jWA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd95-o8jrsC6hHeWFB9P2EUvMUwdPHL0RLfjqJnDXG21od2-4OxBOh75wl6o_hgt_g6JkNuG-G-eD7w0lW9c68LsljsMkTMSN8Kz8N3TfUt4Vwnjhk49qd6uKMszkhUTZE19bx5STg1zL7re8LrCYWRxlJ4izSWrV3y3PRVSM2ZnYZf_71bqkOtiw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd9vigK6712g1Z651LWPGkY-SUceLvZAgOkQwgSiRGAYp6scSmZ17bBYu64j_J-XhEDB0l29LCIB7Hkisgihh1T5wVqFwttkYp0NDs2gqY6mpvs2NyZOwv6OxIgcLH-uActX780kaSHsjkfjLmjkg5ZN-lOWT6OQxbeYYHJjezOuBNflztgI7RZ1g..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd9Jx9_3Rdppw3MSgzQCFX0zb0Fk3CdiYlVrOBJNHX0VEHfvTyDzBGwZAtdWkYv_ssxLN5KV6IUrAeJGaUKcX4z21VHik1HmOIEVFDjGSLfbdtJCH9WKmz0CrsjA7_27R4oVIZP6u7u7mz2TdhkknMWuTOjbi1QENvQAmFdXsQYfokCn9lOoZLP2Q..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd95-o8jrsC6hHeWFB9P2EUvMUwdPHL0RLfjqJnDXG21od2-4OxBOh759FIn2NhZbW8xUzkIKJVyOR0Lp-I3N3q4Y-U0mEU08pM899rXXG7Jyw_VqMZBakA_BpUCpKtn8evK6FVeFXOCsKQF9lzLUMpwSfguBbIKbDjKaDIhbN7gRYtPujwwRB2Pw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFdGAnE5nCTQcOh35OSgIxs1qXa8Fplpd9_Ht-_9sUEtBkeyuw7pnT_NQDleGrF2ub4ZmVoNhaLcuDH1HYV21cNI4JjFQxgqf-xZp0XzXTLuTY8FUgrvDjGN9Ang_yzWd-aHY_ehMQ_VQJ8A1MSrQ34u0KMZSqlrqSurNPc0q_bdbECybNXcYIFPzrhbfFHxpw7QnugLzauf2rCDCayYmfpA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E47A247CDA5042787CD3BFE332ECAB7957B6075F140C0F' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyMwTNaNI9el6gU03FVyY4B1Jo8JfwMVWIioEcI_ylIoiFoW8sqMs73kmelsgiCXMthjhXf_Imi0gX63XnvKkxTfhDHW_bODEgvDLNTeOwHzYtLIP_THJdot5Nu7CnoSqqg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyCLkD8PuGI0ewhxMdkZ4cZ4VJdjepjc3HX7kErgd5DEK8Nyzu0JMKOT1VeV3eSkgY9ZVuMo8r7f4hWg99A5TSdZeU_ryeb9aedZm_oR9h0ebQKknnAxxuHCfxjh3za6jWA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd95-o8jrsC6hHeWFB9P2EUvMUwdPHL0RLfjqJnDXG21od2-4OxBOh753OmEir_2XBYLc7jRUsCZKkWYHB-ewl7lib5tORSE_WB_uG4kLz6IVVpK0rwhPpI5Wv-vtJ-qmk3BKRLh0tAB2MiOlCvC1jkFYdeLl8_z7lBBgpilIoUIjLvzHZXxeLdyg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd9B8ei2NPHWMXv6YrPEyu8Z-XjKAjNKnWt16c5eLLrp5EmpIKu0_scULV0uyfuc16bhiXyBPQQMGe2dmx0G0irfeHGEPCO0mbTN7ChagK8VunURW_14aADlcqT5_v-bz32pQTpiw1q7J-Dcjia5lq6k-47k3afGoheAzB_0eLul4ZFkDr8IT4KYw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd99L95Ff_vCVu6Q7vU_EybYeStql4vjD76QSRF2NEDMUvzJkK6aABXpWcytAQzkKCpcbDU_MSTnumMRNJY64m4wU4gWSCerJvvEBki04jzQSrh5Vkfxadv1tD9B2U7hTSkKVwZvieoJ5gPNvH-VYL5N8VlPyh_fQtQoxyQZg7rIgHFcvUoAZZH7Q..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyIobfaFuws-62_4E7LNOU6Ik2beNE0gyFsdMEwAeCE6Y25soO_khh4Wp0lIwbDlsJTHoHhr5zU1NmWKivlAqQRceaVaQAYIGh6Bfc_8VXm1xgysmZ1SKyA3f3q8uRDTfkw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyJgfyFWqxRDKJ718Rkjulp6rQTQmmDjOyxGox5p7ck5J_hoDDv4X3lydi8g7rqf_M6VYnFPBXfZBNsOoTAzu1V_6Jg7XhWf9U5NMy0buI8jGowhQP5roWNtQL0Hr9Gyd3Q..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyEw55_p_82Nmny9MnQs40jvceUtDjo8abhuomQgr1MZqmlu-FNqBnaVwdFXcf6nks3rgsF3zV_EjWATp1uC9eXfH8Me1fN_A0AMhJNJrsBPim2yWxRI4-fg5eBgmN3LoYQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd9RzIcAdOJnsLm88MIBN7Gf5UkZc6T7El5M9dKoxQwGenUCIECgcJkgihn1DDvQJTdcenlUDqes5NoUPzwxOQ8Fnb1yEDED2lXITg7Ewze_Wlr1t248dSqNl2DoFovZoVgRVj915fMhpxwhoWnTKvTKEHuv-LegthgZTiswFJBgpHYl_Q5RRZQjg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFenkHzsMhle8Oh35OSgIxs1qXa8Fplpd9N8Sewz6nnQWtH7Wnk8GEJWWWPYemwGuAKcAPWrGc_Yn2TC8UdjSSVeKEJurgB74wITAB5d6VjhkKCbMDv4UY23qXwQIV30NqrHw-0mWaqQbY1j75xjxgv5kgJ8LaMly-VOqf8EuUTlkldm4sQG6NMGQt7EFumWIxSJ5x_Zyj7dP6zvkPgoArRQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E493BA7CDA5042787CD3BFE332ECAB7957B6075F140C16' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyIzeYl7tB5V7ZKlj_zS--eDhuHHJJIokJlzGS6qGanwU_OIVN8OtQb5HwhWoeSPXofIDiwnoStMhYVtFuYBSk7zsssp_HUzQJVc5T-XPMBH28orf6D7eGTQ89kyxDwoXvg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd95u2g4YyDJxTxYAqU1xrrtDQZwRBAwlm08CPmSQM7lMEO4y9QwaSucrsY-VE2wUtihaBskxvcNDMqhDHlDlwLiZ11aALQ-thGDWqBQEIQdGrFYWkurSKcKIFQVKO0QunHMqdsl7ScSwG_r3pEOzqXgKGKyV9B-kQvHcg-9ahf9bFj32-j2KiwUw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd9CfjPSVS7Trvrfrhc4dFWypOM9C46xq8ervyXJwS3nL3uMrhf5-5gSbMDZABIDt46v0wv8aEjdwM0tp74hmQmSMB3tIihbz2J0hDUEsRgodeBrCadQlrxhjkYJCuaVRoKqmIgWLSVGs9b1TS8cqka_ZeD4cY-t6wwrLuMPSxO1eHS-e4Yz84xMA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd9jaPVkWjpBsE6aQGkinwAQZnWJtJ_1QQzsH7lUIqFWH4X4ER064Yp9dkBMzuT6BmgmYRJzwFn-YjoAABdR_7d6jCFAsouQBa-lajf4tsvBDY9WhUoTCbK_3FEe9Mveqn73XGPNBVsA8RVjpBn_KtVwoLT9bPcvh2nIAKsMNNSGgGjotuuiAmOIg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd9N8Sewz6nnQWtH7Wnk8GEJWWWPYemwGuAKcAPWrGc_Yn2TC8UdjSSVZUQIYqyylp0JBUUm5qNDOEUZJOFkqZ9FpDrEz5xo13k3hF18Ck1jKSzSz61Smnojpy_zLX8yGKRGRm7JH9uU3tGS5AdauA5HWiLvHSfmC4K81QLIjpgUI-FW6cwuUnkdA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyAwxSXym97eRdOMpKiguVYtl90dmSnRfDMjgTrVTu22gWcb46GvBq61TKLQq7izptGwkf3hs1GN-_LGcMqvRqLqOw8NMNWSElMdSrhLMb9TRhW-uJ4TngMCE8RsmObDbtQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd9_iosaZliJjh6Cyi29-7vmyJUbp_bVQFR11_LiNLtK8_SSgHmSGaGx2V4ylI5TobElQzhxztWRnL3VelY5VTPtmPcGzRMRq6JMH9vHvyZFKau8q7Zc6hJfHxsn1BeZSFlS-3hu-YV2pC_oZ0qVBQWlBQct29G06PBGGb5chDmI5sY-UZGbO56rA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyKv_-xbsNpE5QV16ESjzVz-Nl4UeklX6HXe4WruEYF3yukUrgiroEHf107rgkJ-FGsRr31UwsYARZDjl0sqE3t_ZGEhGOlCPnyRg6GhbALHiINopg54-PLDwdVqCwyPdzA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd9HyqnJZcZO_GblhM82kQfQABVt0bWCanCtbJmfJrK7lAFjGxIZONSbvSuAdgKXIuxX-rvRZmrIoePEQE6O_SVxwJ_8pqe_OzK2yehpNPvV17gdSJVkeVvDNH3w3WYYPC1KpAcL0ag8E5VbRFgbhPo47rPg10lb6euudcU_mqIlwWE8RsmObDbtQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF_L7MMNXmr6sOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyBQBsp4_zgN9UIi3Gy-gA49a1-79v8tROGM7DMMFKT5_FGCFgtRAhRhPouM4vt0nuF9XAeKioeQvU06t7qTsem4eEblM2Hs3z-v7ItwTtspv7LHHfSpieU2fxjh3za6jWA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4AB887CDA5042787CD3BFE332ECAB7957B6075F140C1C' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd950f0DGSO2vW9WXkfp4nJukRwAF_Dv1OuGKiU9XQU1r_GqG8JlvtNGqdocRNZp1qzlF6JTCs2ibhrNFs2xJs_7Oj7OEWyM8Fx7FekdRMWeLq5nj9coBY_d0vr3IAWrDQQc5bVkBD4NpiyiWz4fgnzwM4pbq8Rlx8sBc7q-SC3PRKE8RsmObDbtQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyLI9dEX_WNMO9PecwxxV_z7UxOX7wZZgBbSqLi3ia20waMlYDH-BPOAhwFGRCafOXTClDxoyD0_FjFjKQm8Zn-HCsu4FpbUJhNajFehUiszkA9QjlX4M8Vt5Nu7CnoSqqg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6ft3wfAVofsP5Peu-UiA4DE_ZTbVYnjCFBkwVzyyJ4zOVgrFeYQugDqTY2y2kMLSZGtpL1BAxRlvqLhZdllhm1ToaMrQlS4sKGpSyUOqlO_JisGD9leNyRAsWdoULElTUKDmVLbyIPVQVDztnC9fDXxG9YHB8J9X8cPh7_l5q5i5LgagEEpMMhB-CSHMzjJJEnV_P7T7Ed9v725-6uGEBI2Ss5s30nlQPqC95u8M3itPeW2MlgMOf6Dg9yw-zSpdDPaXhv5OcYho.&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyJ6q18YLXpnoYxmTxmkhAwyIQgFEiDIzEVQPZ7xZj_ZZhUDCJMEgYkUJnfu1ve3NTWplK5lIRvj3wVHECCTiMUi_htzS976Cg16x0wZ8o0zWK4e893Fz6EctPujwwRB2Pw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyOCGRGA5Ewc9eavgdV2rPmYXh41EOW0usUP60tEJK4Dv_adAuFNutwblFgimheaNw_XtMoV1L-_nRGZR-Mfgsdabxhrsj5WhSDYbbW8ouuJYx9EkdnWmDFoCYioxHkzTmA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyOeyA0tsUzsG2gfXuELDEEmAVrX0an3krWnjqMdg5feECH1ZLStW9crt0tIw-HzkSCOuVyT-_Ks76xavG4fbp9CKrA-W2vvawJ_Tz_oMJgvPddQW_C-zPwTI3OTRHYU2og..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyKEmATAQ2YHOtltUoKWu-G4pbWbZwgTaJSIs48IFFaNHwid7lvlAL9Hp461tW5OjBGxGZ05L2iuykcADHF_HPV0K69nz_-qrgdb__fANOWsmMSBVib2hGluAFV_3u-a3OQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd9zPS13wd4g5nCyeinGTrGCuzoH0NVVOD29L-Y502Pmuo29ApuTkpqtosctP0FhSkiSTYFEOYfeDHz2JMINKVwcxdjR1jZ0h_yEIF6Hive4DTfd82bsWlkVvabhisKPeqBob5GdGVfmjrRx7oq5to8s8dGffnNaakwggVvRx7t5ybm0CtGSSkZQQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd9_iosaZliJjh6Cyi29-7vmyJUbp_bVQFR11_LiNLtK8_SSgHmSGaGxx8DBsuKXXTexYdhaVmaNAAIKxTJa6HY8GpkHQHJcp5Ie4fQr2Ol9i-7__x84wcMrpnlBRUGo8-qgeRLu5k7K23iKpTud9CC1-94C1okKF4duMRV9FLKidw6Ebq8fk9diw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoF4mf1B_5q4hYOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyPqCGP5A79XDFq2Qfi281s7puxM5xQiM9AM05MQH0fM0Tu5xvogWUT62r5pEcFn63z1G8FynJ5C8O7tQR8H4KM7Q6ATRAN4rhOvA2-A4zpaJR1Lrztl9kO1hWLv6O878UA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4BD4D7CDA5042787CD3BFE332ECAB7957B6075F140C20' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyMkDIhlV5sO3soHIagyLdoYJki-NAfEcau_ZVvEMNWIEB0iPOUTrRM4_AsnMuSDjKOhhVAmwOT-NTLthhN_x9_XBxZkPpjpppvZ2KIfDG9tcM1B0HBKN0NhAe0f8bRARvQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyAoPnUtvtORaLdzy07tTB0VNSyn5DIrWfg0m1DzafYjJ2e5kPKr5qtpz4CoDCG5iMR0F_c8xQX7zPvGhCAKsVZN19dpqqWIytB6y15rmAc6Z9mXnT42x48dhlgeRt7bSzA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyLM5gp6GZ4duyylsjuc5UywMhv71Tzkih3n7hL9hhvdjIbgU9k8Sd2j4wJS3J_BozVmuM2SjfuOFKpQIXF4WkVGglMirWEwXKsBZATOsh0FhobAhvq4oHBu00NVofL2iDw..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyFpg7cL335DgOISt2z9cKA2776UFedJU-PUGQvL_gM-D0i1ur7wPHveUxXa9QXhqyeyx7efEs9QiG3ktPXHMDNy5wOVLMiG_t6enrZaZyF1TSHwEHEqz__-q3X8EKMKOIA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyO_he5b5_mxMHpWaraz2qvluO9omR_-ibf0x55KC7K2NLgMOpNYw3p_d_atbEYzdxzqwgTIfK_elM9JehbDilObd4XISKCFswIlc3-u92dJ9vhbc8ROfLmsCn9lOoZLP2Q..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyJk0IzUX2vz0mBAoxCoKeZowNt7weq-zR0KIcAK8_fHiy3-wlBmca1LK58YlJ8OqogDfWIx0UeAW0GTjCa4ZkhxAJGS3vTS1Yv_rQdBbPpwvcxFRPw3mIxYNGbbB75bUeA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6ft3wfAVofsP5Peu-UiA4DE_ZTbVYnjCFh7URuI69ZHyVgrFeYQugDlNGrxD_FQsuO0504uuIoAacv0sNxX1-aKWIzTl1FhNBJz068YBoT-iL-L8eV0ZtGQ1k0cyWfIyOKY-xLOeXCKKU8DHlE0BfuTLpmol-fIMLUS_oaCcWeP-rVLqL7KwIeoLv7u68hRsbLEwhNOdqzhJcINjJP5qke3QNIhbqOI-qvkauigmXQioMF99z-G-vcqu8MYpf_OskQIyKLchtx439ugBbTaqsvERHlG8zg_13iZqwg0yoRFw.&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd98WWgBZLUI5cNXR0RoiKpT3g0M5J5jlW-5tBmcaf8szGkjBouZpqzTQtVQ_y4UaUBAEoSe4kzvIAXw0r86fdv7ofuHzloLVaBCdkSHd5I2gLUQhFQ5B0Gmty98NBdxI3UDmSk5B6bvxGz40cjLJ-KNgQtN_lkK-DjRC4l4GnSMP6TJmCU1UgHwQ..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyFzv2P0HGWj_jHKBl3swUskfBGr0zVgW5wLDcxD4ebu2WMixHHPV2pcZt2LNh2hDTpdrhYVpWfKJaCujI3e1v9UF4YOkyUe4nWYtB_AD7ENH9jO8SrML6NMSYTqT4eyLmA..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n",
      "H:\\Software download\\Anaconda3\\lib\\site-packages\\xlsxwriter\\worksheet.py:915: UserWarning: Ignoring URL 'https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS2gj3OPi1XoFajsUnB3bfHMOh35OSgIxs1qXa8Fplpd97yhpAhHKgP15bq_--kivnB522SMs0GlpRimu_xwK2hW59bHC3ILuyKq-E7H2m6gFMahKxhnKCrMW1BKsAJAhKTKENXTIqM09_L7RwcpVyneXhSVDNaaepWd90Rpbyiz3EpFssJ2TBtaGoeTPRscyTLpbApgbJO4WonELF6djNG9Q_LeJW-Rhtg..&type=2&query=%E5%B9%BF%E5%91%8A%E4%BC%98%E5%8C%96%E5%B8%88&token=09E4CD9C7CDA5042787CD3BFE332ECAB7957B6075F140C24' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS\n",
      "  force_unicode(url))\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Wall time: 3min 10s\n"
     ]
    }
   ],
   "source": [
    "%%time\n",
    "# 多个页面+多个关键词\n",
    "import time\n",
    "from random import random\n",
    "\n",
    "url = \"https://weixin.sogou.com/weixin\"\n",
    "xpath_翻页a = '//div[@class=\"p-fy\"]/a[starts-with(@href,\"?query\")]'\n",
    "# 多界面（不同的内容（分类、关键词））多页面（翻页）\n",
    "query = ['广告优化师','有米科技','热云数据','广告投放']\n",
    "list_df = list()\n",
    "\n",
    "## 第一页试探有多长的页面\n",
    "for key in query:\n",
    "    payload = 参数模板生成(query=[key], page=['1'])\n",
    "    print(payload)\n",
    "    df = request_sougou_weixin( url, params = payload)\n",
    "    href_列表 = [x.xpath('//@href')[0] for x in r.html.xpath(xpath_翻页a)]\n",
    "    df = pd.DataFrame([ urlparse(x) for x in href_列表])\n",
    "    print(df)\n",
    "    df_qs = pd.DataFrame([{k:v[0] for k,v in parse_qs(x).items()} for x in df['query']])\n",
    "    df_qs = df_qs.assign (page_int=df_qs.page.astype(int)) # 变成整数\n",
    "    长度 = df_qs.page_int.max()\n",
    "    参数_query_X_page = { \n",
    "        i:参数模板生成(page = [i], \\\n",
    "                      query = [key]) \\\n",
    "        for i in range(df_qs.page_int.min()-1,长度)\\\n",
    "        }\n",
    "    #print (参数_query_X_page)\n",
    "    print (key,长度)\n",
    "    print(\"参数_query_X_page\",参数_query_X_page)\n",
    "    \n",
    "    for k,v in 参数_query_X_page.items():\n",
    "        payload = v\n",
    "        print(\"payload\",payload)\n",
    "        print(url)\n",
    "        df = request_sougou_weixin( url, params = payload)\n",
    "        \n",
    "        time.sleep(3+4*random())  #放慢脚步 3-7秒, 平均约5秒\n",
    "        # 备份\n",
    "        display(df)\n",
    "        df.to_csv(\"20春_Web数据挖掘_week05_sougou_weixin_{key}_{k}.tsv\"\\\n",
    "                  .format(key=key, k=k), sep=\"\\t\", encoding=\"utf8\")\n",
    "        \n",
    "        df = df.assign (query = key)  # 区分  keyword    \n",
    "        df = df.assign (page = k)  # 区分  page    \n",
    "        list_df.append(df)\n",
    "        \n",
    "df_all = pd.concat(list_df).reset_index()\n",
    "df_all.index.name = '序'\n",
    "\n",
    "df_all.to_excel(\"广告优化师_有米科技_week05_sougou_weixin_翻页.xlsx\",\\\n",
    "                sheet_name=\"_\".join(query))\n",
    "# 预估时间: 4*5秒*10 =200\n",
    "# 预估数量: 4*40*10 =1600"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
